sessionManager->isAuthenticated()) { return (new SlimResponse()) ->withHeader('Location', '/auth/login') ->withStatus(302); } return $handler->handle($request); } }