]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/UserBundle/DependencyInjection/WallabagUserExtension.php
Add option to disable registration
[github/wallabag/wallabag.git] / src / Wallabag / UserBundle / DependencyInjection / WallabagUserExtension.php
index c12a893782e34a6ce416c77f631223edb8c0a510..99040f6946bbca1743c7a0e850185659935f9171 100644 (file)
@@ -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()