From 9d50517ceaeadaba227ccdbaa43a5918abd16728 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= <nicolas@loeuillet.org>
Date: Thu, 22 Jan 2015 17:18:56 +0100
Subject: migrating legacy to symfony

---
 .../DependencyInjection/WallabagExtension.php      | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 src/WallabagBundle/DependencyInjection/WallabagExtension.php

(limited to 'src/WallabagBundle/DependencyInjection')

diff --git a/src/WallabagBundle/DependencyInjection/WallabagExtension.php b/src/WallabagBundle/DependencyInjection/WallabagExtension.php
new file mode 100644
index 00000000..cfdb21fc
--- /dev/null
+++ b/src/WallabagBundle/DependencyInjection/WallabagExtension.php
@@ -0,0 +1,22 @@
+<?php
+
+namespace WallabagBundle\DependencyInjection;
+
+use Symfony\Component\DependencyInjection\ContainerBuilder;
+use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
+use Symfony\Component\HttpKernel\DependencyInjection\Extension;
+use Symfony\Component\Config\FileLocator;
+
+class WallabagExtension extends Extension
+{
+    public function load(array $configs, ContainerBuilder $container)
+    {
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
+        $loader->load('services.xml');
+    }
+
+    public function getAlias()
+    {
+        return 'wallabag';
+    }
+}
-- 
cgit v1.2.3