aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/UserBundle/DependencyInjection/Configuration.php
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2016-07-02 14:35:52 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-08-23 07:40:36 +0200
commitde3d716ae4e8ca98dabdcb2ec9c18219e05856f7 (patch)
treedc1198b88d23b81130026057ddebb1d687c643e6 /src/Wallabag/UserBundle/DependencyInjection/Configuration.php
parent79efca1e6ff28362d4bd2713f68205294cdd07de (diff)
downloadwallabag-de3d716ae4e8ca98dabdcb2ec9c18219e05856f7.tar.gz
wallabag-de3d716ae4e8ca98dabdcb2ec9c18219e05856f7.tar.zst
wallabag-de3d716ae4e8ca98dabdcb2ec9c18219e05856f7.zip
Add option to disable registration
Diffstat (limited to 'src/Wallabag/UserBundle/DependencyInjection/Configuration.php')
-rw-r--r--src/Wallabag/UserBundle/DependencyInjection/Configuration.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Wallabag/UserBundle/DependencyInjection/Configuration.php b/src/Wallabag/UserBundle/DependencyInjection/Configuration.php
index 4223f8db..971ce1a0 100644
--- a/src/Wallabag/UserBundle/DependencyInjection/Configuration.php
+++ b/src/Wallabag/UserBundle/DependencyInjection/Configuration.php
@@ -12,6 +12,14 @@ class Configuration implements ConfigurationInterface
12 $treeBuilder = new TreeBuilder(); 12 $treeBuilder = new TreeBuilder();
13 $rootNode = $treeBuilder->root('wallabag_user'); 13 $rootNode = $treeBuilder->root('wallabag_user');
14 14
15 $rootNode
16 ->children()
17 ->booleanNode('registration_enabled')
18 ->defaultValue(true)
19 ->end()
20 ->end()
21 ;
22
15 return $treeBuilder; 23 return $treeBuilder;
16 } 24 }
17} 25}