aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CommentBundle/DependencyInjection/WallabagCommentExtension.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CommentBundle/DependencyInjection/WallabagCommentExtension.php')
-rw-r--r--src/Wallabag/CommentBundle/DependencyInjection/WallabagCommentExtension.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/Wallabag/CommentBundle/DependencyInjection/WallabagCommentExtension.php b/src/Wallabag/CommentBundle/DependencyInjection/WallabagCommentExtension.php
new file mode 100644
index 00000000..b58a17a0
--- /dev/null
+++ b/src/Wallabag/CommentBundle/DependencyInjection/WallabagCommentExtension.php
@@ -0,0 +1,23 @@
1<?php
2
3namespace Wallabag\CommentBundle\DependencyInjection;
4
5use Symfony\Component\DependencyInjection\ContainerBuilder;
6use Symfony\Component\Config\FileLocator;
7use Symfony\Component\HttpKernel\DependencyInjection\Extension;
8use Symfony\Component\DependencyInjection\Loader;
9
10class WallabagCommentExtension extends Extension
11{
12 /**
13 * {@inheritdoc}
14 */
15 public function load(array $configs, ContainerBuilder $container)
16 {
17 $configuration = new Configuration();
18 $config = $this->processConfiguration($configuration, $configs);
19
20 $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
21 $loader->load('services.yml');
22 }
23}