]>
Commit | Line | Data |
---|---|---|
1 | <?php | |
2 | ||
3 | namespace Wallabag\ImportBundle\DependencyInjection; | |
4 | ||
5 | use Symfony\Component\Config\Definition\Builder\TreeBuilder; | |
6 | use Symfony\Component\Config\Definition\ConfigurationInterface; | |
7 | ||
8 | class 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 | } |