Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a9db9cd846 | ||
|
|
2a18e0cb9a |
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
+1
-1
@@ -209,4 +209,4 @@ class Lean
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user