aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CommentBundle/DependencyInjection
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2016-02-07 16:52:59 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-02-26 18:13:17 +0100
commitf38e03dc02c96344677fd2720912605b21c90b5d (patch)
tree2028cecf5d0930e1569ddb977e245ea44bedc38a /src/Wallabag/CommentBundle/DependencyInjection
parentd3f1a9dc1ac181033ec54f9149d2807199fa8f17 (diff)
downloadwallabag-f38e03dc02c96344677fd2720912605b21c90b5d.tar.gz
wallabag-f38e03dc02c96344677fd2720912605b21c90b5d.tar.zst
wallabag-f38e03dc02c96344677fd2720912605b21c90b5d.zip
Comment work with annotator v2
- add missing annotator.js file and fix typo - edit & delete routes, started tests - basic tests
Diffstat (limited to 'src/Wallabag/CommentBundle/DependencyInjection')
-rw-r--r--src/Wallabag/CommentBundle/DependencyInjection/Configuration.php20
-rw-r--r--src/Wallabag/CommentBundle/DependencyInjection/WallabagCommentExtension.php23
2 files changed, 43 insertions, 0 deletions
diff --git a/src/Wallabag/CommentBundle/DependencyInjection/Configuration.php b/src/Wallabag/CommentBundle/DependencyInjection/Configuration.php
new file mode 100644
index 00000000..bc8d0615
--- /dev/null
+++ b/src/Wallabag/CommentBundle/DependencyInjection/Configuration.php
@@ -0,0 +1,20 @@
1<?php
2
3namespace Wallabag\CommentBundle\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_comment');
17
18 return $treeBuilder;
19 }
20}
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}