Use Twig globals to pass registration_enabled

This commit is contained in:
Yassine Guedidi
2022-05-05 23:12:44 +02:00
parent 5a55a64fee
commit bfc28d4c0b
3 changed files with 2 additions and 27 deletions

View File

@ -41,6 +41,8 @@ twig:
form_themes:
- "LexikFormFilterBundle:Form:form_div_layout.html.twig"
exception_controller: wallabag_core.exception_controller:showAction
globals:
registration_enabled: '%fosuser_registration%'
# Doctrine Configuration
doctrine:

View File

@ -41,12 +41,6 @@ homepage:
fos_user:
resource: "@FOSUserBundle/Resources/config/routing/all.xml"
fos_user_security_login:
path: /login
defaults:
_controller: Wallabag\UserBundle\Controller\SecurityController::loginAction
methods: [GET, POST]
fos_user_registration_register:
path: /register
defaults: