aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ImportBundle/DependencyInjection/Configuration.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/ImportBundle/DependencyInjection/Configuration.php')
-rw-r--r--src/Wallabag/ImportBundle/DependencyInjection/Configuration.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/Wallabag/ImportBundle/DependencyInjection/Configuration.php b/src/Wallabag/ImportBundle/DependencyInjection/Configuration.php
new file mode 100644
index 00000000..39df9d3f
--- /dev/null
+++ b/src/Wallabag/ImportBundle/DependencyInjection/Configuration.php
@@ -0,0 +1,27 @@
1<?php
2
3namespace Wallabag\ImportBundle\DependencyInjection;
4
5use Symfony\Component\Config\Definition\Builder\TreeBuilder;
6use Symfony\Component\Config\Definition\ConfigurationInterface;
7
8class Configuration implements ConfigurationInterface
9{
10 public function getConfigTreeBuilder()
11 {
12 $treeBuilder = new TreeBuilder();
13 $rootNode = $treeBuilder->root('wallabag_import');
14
15 $rootNode
16 ->children()
17 ->arrayNode('allow_mimetypes')
18 ->prototype('scalar')->end()
19 ->end()
20 ->scalarNode('resource_dir')
21 ->end()
22 ->end()
23 ;
24
25 return $treeBuilder;
26 }
27}