public function displayRegisterForm(Request $request)
    {
        if (!$this->getRegistrationManager()->isRegistrationEnabled()) {
            $this->app->abort(404, 'Registration is disabled');
        }

        if (0 < count($this->getAuthenticationProviders())) {
            return $this->render('login/register.html.twig', $this->getDefaultTemplateVariables($request));
        } else {
            return $this->app->redirectPath('login_register_classic');
        }
    }
public function displayRegisterForm(Request $request)
    {
        if (!$this->getRegistrationManager()->isRegistrationEnabled()) {
            $this->app->abort(404, 'Registration is disabled');
        }

        if (0 < count($this->getAuthenticationProviders())) {
            return $this->render('login/register.html.twig', $this->getDefaultTemplateVariables($request));
        } else {
            return $this->app->redirectPath('login_register_classic');
        }
    }
public function displayRegisterForm ( Request $ request ) { if ( ! $ this -> getRegistrationManager ( ) -> isRegistrationEnabled ( ) ) { $ this -> app -> abort ( 404 , 'Registration is disabled' ) ; } if ( 0 < count ( $ this -> getAuthenticationProviders ( ) ) ) { return $ this -> render ( 'login/register.html.twig' , $ this -> getDefaultTemplateVariables ( $ request ) ) ; } else { return $ this -> app -> redirectPath ( 'login_register_classic' ) ; } }
Get the register form

@param  Request $request The current request
@return Response
Get the register form