コード例 #1
0
 /**
  * @param AuthenticationEvent $e
  */
 public function authListener(AuthenticationEvent $e)
 {
     $result = $e->getResult();
     if ($result->isValid()) {
         if ($this->rememberMe) {
             $this->sessionManager->rememberMe();
         } else {
             $this->sessionManager->forgetMe();
         }
         $this->sessionManager->writeClose();
     }
 }
コード例 #2
0
 /**
  * @param AuthenticationEvent $e
  */
 public function dispatchAuthentication(AuthenticationEvent $e)
 {
     $e->setResult(parent::authenticate($e->getAdapter()));
 }