getResource($user->getIdentifier())->exists()) { /** @var LtiUserService $ltiUserService */ $ltiUserService = $this->getServiceLocator()->get(LtiUserService::SERVICE_ID); $userData = $ltiUserService->getUserDataFromId($userId); if ($userData) { $user = new KvLtiUser($userData); } } return $user; } }