1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

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

@ -1,21 +0,0 @@
<?php
namespace Wallabag\UserBundle\Controller;
use FOS\UserBundle\Controller\SecurityController as FOSSecurityController;
/**
* Extends login form in order to pass the registration_enabled parameter.
*/
class SecurityController extends FOSSecurityController
{
protected function renderLogin(array $data)
{
return $this->render('FOSUserBundle:Security:login.html.twig',
array_merge(
$data,
['registration_enabled' => $this->container->getParameter('fosuser_registration')]
)
);
}
}