Compare commits
2 Commits
ff4c94f820
...
a9db9cd846
Author | SHA1 | Date | |
---|---|---|---|
|
a9db9cd846 | ||
|
2a18e0cb9a |
@ -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 $binary, int $code = 200, array $headers = []) : ResponseInterface
|
||||
public static function createPdfResponse(\Stringable|string $binary, int $code = 200, array $headers = []) : ResponseInterface
|
||||
{
|
||||
return new PdfResponse((string) $binary, $code, $headers);
|
||||
}
|
||||
|
@ -209,4 +209,4 @@ class Lean
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user