aboutsummaryrefslogblamecommitdiffhomepage
path: root/src/Wallabag/UserBundle/Controller/RegistrationController.php
blob: bba27cfb1bab56719c3a549c37eb16f8e347c02f (plain) (tree)



















                                                                                   
<?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')) {
            parent::registerAction($request);
        }
        else
        {
            return $this->redirectToRoute('fos_user_security_login', array(), 301);
        }
    }
}