]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/UserBundle/DependencyInjection/Configuration.php
Validate imported entry to avoid error on import
[github/wallabag/wallabag.git] / src / Wallabag / UserBundle / DependencyInjection / Configuration.php
CommitLineData
23ff8d36
JB
1<?php
2
3namespace Wallabag\UserBundle\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_user');
14
de3d716a
TC
15 $rootNode
16 ->children()
17 ->booleanNode('registration_enabled')
18 ->defaultValue(true)
19 ->end()
20 ->end()
21 ;
22
23ff8d36
JB
23 return $treeBuilder;
24 }
25}