/** * @Route ["/logout", "get"] * @Authorize */ public function logout() { \Framework\Core\Identity::logout(); $this->redirect("login"); }
/** * @Authorize "Admin" */ public function logout() { \Framework\Core\Identity::logout(); $this->redirect(\Framework\Helpers\Helpers::url() . "admin/login"); }