Ejemplo n.º 1
0
 /**
  * @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);
 }
Ejemplo n.º 2
0
 /**
  * {@InheritDoc}
  */
 public function loadUserByUsername($username)
 {
     return $this->api->getUser($username);
 }