diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-01-22 17:18:56 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-01-22 17:18:56 +0100 |
commit | 9d50517ceaeadaba227ccdbaa43a5918abd16728 (patch) | |
tree | 5aa92beb3250895079690d7ecb8b3ddde28cda15 /src/WallabagBundle/DependencyInjection/WallabagExtension.php | |
parent | 2b9fe72b397a239c40f8c66d83506e0e2e8d5854 (diff) | |
download | wallabag-9d50517ceaeadaba227ccdbaa43a5918abd16728.tar.gz wallabag-9d50517ceaeadaba227ccdbaa43a5918abd16728.tar.zst wallabag-9d50517ceaeadaba227ccdbaa43a5918abd16728.zip |
migrating legacy to symfony
Diffstat (limited to 'src/WallabagBundle/DependencyInjection/WallabagExtension.php')
-rw-r--r-- | src/WallabagBundle/DependencyInjection/WallabagExtension.php | 22 |
1 files changed, 22 insertions, 0 deletions
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 @@ | |||
1 | <?php | ||
2 | |||
3 | namespace WallabagBundle\DependencyInjection; | ||
4 | |||
5 | use Symfony\Component\DependencyInjection\ContainerBuilder; | ||
6 | use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; | ||
7 | use Symfony\Component\HttpKernel\DependencyInjection\Extension; | ||
8 | use Symfony\Component\Config\FileLocator; | ||
9 | |||
10 | class WallabagExtension extends Extension | ||
11 | { | ||
12 | public function load(array $configs, ContainerBuilder $container) | ||
13 | { | ||
14 | $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); | ||
15 | $loader->load('services.xml'); | ||
16 | } | ||
17 | |||
18 | public function getAlias() | ||
19 | { | ||
20 | return 'wallabag'; | ||
21 | } | ||
22 | } | ||