/** * @return ApiResponse */ public function getUser($username) { $user = $this->api->getUser($username); if (null === $user) { throw new NotFoundHttpException('User ' . $username . ' not found.'); } return new ApiResponse($user); }
/** * {@InheritDoc} */ public function loadUserByUsername($username) { return $this->api->getUser($username); }