]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/WallabagBundle/DependencyInjection/WallabagExtension.php
migrating legacy to symfony
[github/wallabag/wallabag.git] / src / WallabagBundle / DependencyInjection / WallabagExtension.php
CommitLineData
9d50517c
NL
1<?php
2
3namespace WallabagBundle\DependencyInjection;
4
5use Symfony\Component\DependencyInjection\ContainerBuilder;
6use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
7use Symfony\Component\HttpKernel\DependencyInjection\Extension;
8use Symfony\Component\Config\FileLocator;
9
10class 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}