forked from wallabag/wallabag
Use Twig globals to pass registration_enabled
This commit is contained in:
@ -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')]
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user