- Removed saveError method
This commit is contained in:
1 parent
9571c6a462
commit
ca88b94bbe
1 file changed
+3
-3
@@ -27,7 +27,7 @@ class ApiRenderer implements MiddlewareInterface {
|
|||||||
}
|
}
|
||||||
catch(\Throwable $ex) {
|
catch(\Throwable $ex) {
|
||||||
if (static::awaitingJson($request)) {
|
if (static::awaitingJson($request)) {
|
||||||
$this->saveError($request, $ex);
|
# $this->saveError($request, $ex);
|
||||||
|
|
||||||
return HttpFactory::createJsonResponse([
|
return HttpFactory::createJsonResponse([
|
||||||
'status' => 'failed',
|
'status' => 'failed',
|
||||||
@@ -61,7 +61,7 @@ class ApiRenderer implements MiddlewareInterface {
|
|||||||
return $response;
|
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)) {
|
if ($debugFormFactory = $this->container->get(DebugFormFactoryInterface::class)) {
|
||||||
$request = $request->withMethod('PUT')->withParsedBody([]);
|
$request = $request->withMethod('PUT')->withParsedBody([]);
|
||||||
@@ -82,7 +82,7 @@ class ApiRenderer implements MiddlewareInterface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $entity;
|
return $entity;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
public static function awaitingJson(ServerRequestInterface $request) : bool
|
public static function awaitingJson(ServerRequestInterface $request) : bool
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user