handle($request); } catch (AccessDeniedException $ade) { $_SESSION['redirect_after_login'] ??= Request::url(); return $this->responseFactory->createResponse(302) ->withHeader('Location', URLHelper::getURL('dispatch.php/login')); } } }