1 Commits
Author SHA1 Message Date
mcndave ca88b94bbe - Removed saveError method 2026-10-27 18:28:32 +00:00
+3 -3
View File
@@ -27,7 +27,7 @@ class ApiRenderer implements MiddlewareInterface {
}
catch(\Throwable $ex) {
if (static::awaitingJson($request)) {
$this->saveError($request, $ex);
# $this->saveError($request, $ex);
return HttpFactory::createJsonResponse([
'status' => 'failed',
@@ -61,7 +61,7 @@ class ApiRenderer implements MiddlewareInterface {
return $response;
}
protected function saveError(ServerRequestInterface $request, \Throwable $exception) : Entity\Error
/*protected function saveError(ServerRequestInterface $request, \Throwable $exception) : Entity\Error
{
if ($debugFormFactory = $this->container->get(DebugFormFactoryInterface::class)) {
$request = $request->withMethod('PUT')->withParsedBody([]);
@@ -82,7 +82,7 @@ class ApiRenderer implements MiddlewareInterface {
}
return $entity;
}
}*/
public static function awaitingJson(ServerRequestInterface $request) : bool
{