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