forked from wallabag/wallabag
Add option to disable registration
This commit is contained in:
committed by
Jeremy Benoist
parent
79efca1e6f
commit
de3d716ae4
@ -12,6 +12,14 @@ class Configuration implements ConfigurationInterface
|
||||
$treeBuilder = new TreeBuilder();
|
||||
$rootNode = $treeBuilder->root('wallabag_user');
|
||||
|
||||
$rootNode
|
||||
->children()
|
||||
->booleanNode('registration_enabled')
|
||||
->defaultValue(true)
|
||||
->end()
|
||||
->end()
|
||||
;
|
||||
|
||||
return $treeBuilder;
|
||||
}
|
||||
}
|
||||
|
||||
@ -16,6 +16,7 @@ class WallabagUserExtension extends Extension
|
||||
|
||||
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
||||
$loader->load('services.yml');
|
||||
$container->setParameter('wallabag_user.registration_enabled', $config['registration_enabled']);
|
||||
}
|
||||
|
||||
public function getAlias()
|
||||
|
||||
Reference in New Issue
Block a user