File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -82,14 +82,14 @@ use Yiisoft\Injector\Injector;
8282
8383return [
8484 // ...
85- ErrorHandler ::class => static function (ResponseFactoryInterface $responseFactory, Injector $injector) {
85+ ExceptionResponder ::class => static function (ResponseFactoryInterface $responseFactory, Injector $injector) {
8686 $exceptionMap = [
8787 // Status code with which the factory creates the response.
8888 MyNotFoundException::class => 404,
8989 // PHP callable that must return a `Psr\Http\Message\ResponseInterface`.
9090 MyHttpException::class => static fn (MyHttpException $exception) => new MyResponse($exception),
9191 // ...
92- ],
92+ ];
9393
9494 return new ExceptionResponder($exceptionMap, $responseFactory, $injector);
9595 },
You can’t perform that action at this time.
0 commit comments