aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/AnnotationBundle/DependencyInjection
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-02-26 13:59:08 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-02-26 18:14:42 +0100
commit4dc872238a61f33c886c423c5812cc578b3b1cdc (patch)
tree4a9413cca2b24e9290057159eeb3833c20aefddb /src/Wallabag/AnnotationBundle/DependencyInjection
parent9eab365e28de969036e58245a57a8a6418541b3c (diff)
downloadwallabag-4dc872238a61f33c886c423c5812cc578b3b1cdc.tar.gz
wallabag-4dc872238a61f33c886c423c5812cc578b3b1cdc.tar.zst
wallabag-4dc872238a61f33c886c423c5812cc578b3b1cdc.zip
Rename CommentBundle with AnnotationBundle
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}