userManager->get($this->userId); if (!$user) { throw new UnauthorizedException('User not found'); } $this->userSession->setVolatileActiveUser($user); return new AuthenticatedUser($user); } }