aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/AnnotationBundle/DependencyInjection
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/AnnotationBundle/DependencyInjection')
-rw-r--r--src/Wallabag/AnnotationBundle/DependencyInjection/Configuration.php20
-rw-r--r--src/Wallabag/AnnotationBundle/DependencyInjection/WallabagAnnotationExtension.php18
2 files changed, 38 insertions, 0 deletions
diff --git a/src/Wallabag/AnnotationBundle/DependencyInjection/Configuration.php b/src/Wallabag/AnnotationBundle/DependencyInjection/Configuration.php
new file mode 100644
index 00000000..5e4e4e9c
--- /dev/null
+++ b/src/Wallabag/AnnotationBundle/DependencyInjection/Configuration.php
@@ -0,0 +1,20 @@
1<?php
2
3namespace Wallabag\AnnotationBundle\DependencyInjection;
4
5use Symfony\Component\Config\Definition\Builder\TreeBuilder;
6use Symfony\Component\Config\Definition\ConfigurationInterface;
7
8class Configuration implements ConfigurationInterface
9{
10 /**
11 * {@inheritdoc}
12 */
13 public function getConfigTreeBuilder()
14 {
15 $treeBuilder = new TreeBuilder();
16 $rootNode = $treeBuilder->root('wallabag_annotation');
17
18 return $treeBuilder;
19 }
20}
diff --git a/src/Wallabag/AnnotationBundle/DependencyInjection/WallabagAnnotationExtension.php b/src/Wallabag/AnnotationBundle/DependencyInjection/WallabagAnnotationExtension.php
new file mode 100644
index 00000000..159576d6
--- /dev/null
+++ b/src/Wallabag/AnnotationBundle/DependencyInjection/WallabagAnnotationExtension.php
@@ -0,0 +1,18 @@
1<?php
2
3namespace Wallabag\AnnotationBundle\DependencyInjection;
4
5use Symfony\Component\DependencyInjection\ContainerBuilder;
6use Symfony\Component\HttpKernel\DependencyInjection\Extension;
7
8class WallabagAnnotationExtension extends Extension
9{
10 /**
11 * {@inheritdoc}
12 */
13 public function load(array $configs, ContainerBuilder $container)
14 {
15 $configuration = new Configuration();
16 $config = $this->processConfiguration($configuration, $configs);
17 }
18}