@@ 257-267 (lines=11) @@ | ||
254 | * @param string $format |
|
255 | * @return Response |
|
256 | */ |
|
257 | protected function authFailureResponse($code, $description, $format) |
|
258 | { |
|
259 | if (strtoupper($format) === 'JSON') { |
|
260 | $resp = app(JsonAuthenticationFailureResponse::class); |
|
261 | } else { |
|
262 | $resp = app(XmlAuthenticationFailureResponse::class); |
|
263 | } |
|
264 | $resp->setFailure($code, $description); |
|
265 | ||
266 | return $resp->toResponse(); |
|
267 | } |
|
268 | ||
269 | /** |
|
270 | * @param string $ticket |
|
@@ 292-302 (lines=11) @@ | ||
289 | * @param string $format |
|
290 | * @return Response |
|
291 | */ |
|
292 | protected function proxyFailureResponse($code, $description, $format) |
|
293 | { |
|
294 | if (strtoupper($format) === 'JSON') { |
|
295 | $resp = app(JsonProxyFailureResponse::class); |
|
296 | } else { |
|
297 | $resp = app(XmlProxyFailureResponse::class); |
|
298 | } |
|
299 | $resp->setFailure($code, $description); |
|
300 | ||
301 | return $resp->toResponse(); |
|
302 | } |
|
303 | ||
304 | /** |
|
305 | * @param string $ticket |