]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/UserBundle/Controller/SecurityController.php
use new tcpdf library version
[github/wallabag/wallabag.git] / src / Wallabag / UserBundle / Controller / SecurityController.php
CommitLineData
de3d716a
TC
1<?php
2
3namespace Wallabag\UserBundle\Controller;
4
5use FOS\UserBundle\Controller\SecurityController as FOSSecurityController;
6
7149aa57
TC
7/**
8 * Extends login form in order to pass the registration_enabled parameter.
9 */
de3d716a
TC
10class SecurityController extends FOSSecurityController
11{
12 protected function renderLogin(array $data)
13 {
14 return $this->render('FOSUserBundle:Security:login.html.twig',
15 array_merge(
16 $data,
ee4442f4 17 ['registration_enabled' => $this->container->getParameter('wallabag_user.registration_enabled')]
de3d716a
TC
18 )
19 );
20 }
21}