afterLogout() protected method

The default implementation will trigger the [[EVENT_AFTER_LOGOUT]] event. If you override this method, make sure you call the parent implementation so that the event is triggered.
protected afterLogout ( yii\web\IdentityInterface $identity )
$identity yii\web\IdentityInterface the user identity information
Beispiel #1
1
 /**
  * @inheritdoc
  */
 public function afterLogout($identity)
 {
     parent::afterLogout($identity);
     // обновляем время авторизации и статус online
     if ($identity && $identity instanceof \nepster\users\models\User) {
         $identity->time_activity = time();
         $identity->save(false);
     }
 }
 protected function afterLogout($identity)
 {
     \Yii::$app->phpBB->logout();
     parent::afterLogout($identity);
 }
 protected function afterLogout($identity)
 {
     parent::afterLogout($identity);
     $this->getHook()->do_action('cruge_afterlogout', $identity);
 }