3 namespace Wallabag\UserBundle\Controller
;
5 use FOS\UserBundle\Controller\RegistrationController
as FOSRegistrationController
;
6 use Symfony\Component\HttpFoundation\Request
;
8 class RegistrationController
extends FOSRegistrationController
10 public function registerAction(Request
$request)
12 if ($this->container
->getParameter('wallabag_user.registration_enabled')) {
13 return parent
::registerAction($request);
16 return $this->redirectToRoute('fos_user_security_login', [], 301);