Skip to content

Commit 9e9e240

Browse files
committed
Lumen does not support response macros and so it's not registered
Might be a bug that code is relies on response macro cause ServiceProvider seems to support cases where response macro could not be registered.
1 parent 642e717 commit 9e9e240

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Exceptions/HandlesErrors.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function renderJsonApi(Request $request, Exception $e)
6161
/** @var ExceptionParserInterface $handler */
6262
$handler = app(ExceptionParserInterface::class);
6363
/** @var ResponseFactoryInterface $responses */
64-
$responses = response()->jsonApi();
64+
$responses = app(ResponseFactoryInterface::class);
6565

6666
$response = $handler->parse($e);
6767
$service->report($response, $e);

0 commit comments

Comments
 (0)