Pagekit\User\Controller\AuthController::logoutAction PHP Метод

logoutAction() публичный Метод

public logoutAction ( $redirect = '' )
    public function logoutAction($redirect = '')
    {
        if (($event = App::auth()->logout()) && $event->hasResponse()) {
            return $event->getResponse();
        }
        return App::redirect(preg_replace('#(https?:)?//[^/]+#', '', $redirect));
    }