aboutsummaryrefslogblamecommitdiffhomepage
path: root/src/Wallabag/UserBundle/Controller/SecurityController.php
blob: 83fa0b20f7809f90a8826ff2a7cf875bffcd3bde (plain) (tree)
1
2
3
4
5
6
7
8
9




                                                                          

                                                                          





                                                                      
                                                                                                                


             
<?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('wallabag_user.registration_enabled')]
            )
        );
    }
}