aboutsummaryrefslogblamecommitdiffhomepage
path: root/src/Wallabag/UserBundle/Controller/RegistrationController.php
blob: d6d0fda1a5a4146c8c1b4bf6f96f5817cae80f9b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                                   
                                                    
         

                                                                               

     
<?php

namespace Wallabag\UserBundle\Controller;

use FOS\UserBundle\Controller\RegistrationController as FOSRegistrationController;
use Symfony\Component\HttpFoundation\Request;

class RegistrationController extends FOSRegistrationController
{
    public function registerAction(Request $request)
    {
        if ($this->container->getParameter('wallabag_user.registration_enabled')) {
            return parent::registerAction($request);
        }

        return $this->redirectToRoute('fos_user_security_login', array(), 301);
    }
}