diff --git a/book/part11.rst b/book/part11.rst index c165a04c1bf..ab17a38049c 100644 --- a/book/part11.rst +++ b/book/part11.rst @@ -75,7 +75,7 @@ make your error management configurable:: $msg = 'Something went wrong! ('.$exception->getMessage().')'; return new Response($msg, $exception->getStatusCode()); - }); + }; $dispatcher->addSubscriber(new HttpKernel\EventListener\ExceptionListener($errorHandler)); ``ExceptionListener`` gives you a ``FlattenException`` instance instead of the