Пример #1
0
 /**
  * @Route ["/logout", "get"]
  * @Authorize
  */
 public function logout()
 {
     \Framework\Core\Identity::logout();
     $this->redirect("login");
 }
Пример #2
0
 /**
  * @Authorize "Admin"
  */
 public function logout()
 {
     \Framework\Core\Identity::logout();
     $this->redirect(\Framework\Helpers\Helpers::url() . "admin/login");
 }