Compare commits
No commits in common. "a9db9cd846d5a1b1325fd1f0555756a9b83fe63f" and "ff4c94f8202e8ed3f277f28e69c7832a0d58f2f4" have entirely different histories.
a9db9cd846
...
ff4c94f820
@ -30,7 +30,7 @@ return [
|
||||
return HttpFactory::createJsonResponse($errorData + [
|
||||
'api.error' => "Authorization failed",
|
||||
'api.datetime' => (new \DateTime)->format(\DateTime::ATOM),
|
||||
], 401);
|
||||
]);
|
||||
};
|
||||
},
|
||||
|
||||
@ -40,7 +40,7 @@ return [
|
||||
'title' => "Authentication failed",
|
||||
'subtitle' => "",
|
||||
'message' => $message,
|
||||
]), 401);
|
||||
]));
|
||||
};
|
||||
},
|
||||
];
|
@ -39,7 +39,7 @@ class HttpFactory
|
||||
return new EmptyResponse($code, $headers);
|
||||
}
|
||||
|
||||
public static function createPdfResponse(\Stringable|string $binary, int $code = 200, array $headers = []) : ResponseInterface
|
||||
public static function createPdfResponse(\Stringable $binary, int $code = 200, array $headers = []) : ResponseInterface
|
||||
{
|
||||
return new PdfResponse((string) $binary, $code, $headers);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user