public function homeAction(Request $request)
    {
        // TODO check if AuthenticationCredentialsNotFoundException is raised without a cookie.
        if (!$this->get('security.authorization_checker')->isGranted('IS_AUTHENTICATED_REMEMBERED')) {
            $request->getSession()->set('_ekyna.login_success.target_path', 'fos_user_profile_show');
            return $this->redirect($this->generateUrl('fos_user_security_login'));
        }
        return $this->redirect($this->generateUrl('fos_user_profile_show'));
    }
public function homeAction(Request $request)
    {
        // TODO check if AuthenticationCredentialsNotFoundException is raised without a cookie.
        if (!$this->get('security.authorization_checker')->isGranted('IS_AUTHENTICATED_REMEMBERED')) {
            $request->getSession()->set('_ekyna.login_success.target_path', 'fos_user_profile_show');
            return $this->redirect($this->generateUrl('fos_user_security_login'));
        }
        return $this->redirect($this->generateUrl('fos_user_profile_show'));
    }
public function homeAction ( Request $ request ) { // TODO check if AuthenticationCredentialsNotFoundException is raised without a cookie. if ( ! $ this -> get ( 'security.authorization_checker' ) -> isGranted ( 'IS_AUTHENTICATED_REMEMBERED' ) ) { $ request -> getSession ( ) -> set ( '_ekyna.login_success.target_path' , 'fos_user_profile_show' ) ; return $ this -> redirect ( $ this -> generateUrl ( 'fos_user_security_login' ) ) ; } return $ this -> redirect ( $ this -> generateUrl ( 'fos_user_profile_show' ) ) ; }
Home action.

@param Request $request
@return \Symfony\Component\HttpFoundation\RedirectResponse
Home action .