Skip to content

Commit ebcdb97

Browse files
authored
Fix typo in handling-errors.md (#410)
Fix #409
1 parent 7100a44 commit ebcdb97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/guide/runtime/handling-errors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,14 @@ use Yiisoft\Injector\Injector;
8282

8383
return [
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
},

0 commit comments

Comments
 (0)