diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-01-23 16:28:37 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-01-23 16:28:37 +0100 |
commit | ad4d1caa9e744af57ca58a4e57576533eb682d00 (patch) | |
tree | 37d6c284d2afc7fc62cdf80be419b536ab4ea603 /src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php | |
parent | b84a80559a1167b5500fbc5eb4965d3b08b371ef (diff) | |
download | wallabag-ad4d1caa9e744af57ca58a4e57576533eb682d00.tar.gz wallabag-ad4d1caa9e744af57ca58a4e57576533eb682d00.tar.zst wallabag-ad4d1caa9e744af57ca58a4e57576533eb682d00.zip |
move WallabagBundle into Wallabag:CoreBundle
Diffstat (limited to 'src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php')
-rw-r--r-- | src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php b/src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php new file mode 100644 index 00000000..7cc4165e --- /dev/null +++ b/src/Wallabag/CoreBundle/DependencyInjection/WallabagCoreExtension.php | |||
@@ -0,0 +1,22 @@ | |||
1 | <?php | ||
2 | |||
3 | namespace Wallabag\CoreBundle\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 WallabagCoreExtension 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_core'; | ||
21 | } | ||
22 | } | ||