original_string: 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'));
      }
code: 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'));
      }
code_tokens: 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' ) ) ; }
docstring: Home action.
  
  @param Request $request
  @return \Symfony\Component\HttpFoundation\RedirectResponse
docstring_tokens: Home action .