Пример #1
0
 /**
  * Create a http response.
  *
  * @param AuthenticationCredentialsNotFoundException $exception The exception to create a response for.
  *
  * @return JsonResponse
  */
 private function createUnauthenticatedResponse(AuthenticationCredentialsNotFoundException $exception)
 {
     return new JsonResponse(['status' => 'ERROR', 'message' => $exception->getMessageKey()], JsonResponse::HTTP_UNAUTHORIZED);
 }