File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,9 @@ Our code is now much more concise and surprisingly more robust and more
6565powerful than ever. For instance, use the built-in ``ExceptionListener `` to
6666make your error management configurable::
6767
68- $errorHandler = function (HttpKernel\Exception\FlattenException $exception) {
68+ use Symfony\Component\Debug\Exception\FlattenException;
69+
70+ $errorHandler = function (FlattenException $exception) {
6971 $msg = 'Something went wrong! ('.$exception->getMessage().')';
7072
7173 return new Response($msg, $exception->getStatusCode());
@@ -88,7 +90,7 @@ The error controller reads as follows::
8890 namespace Calendar\Controller;
8991
9092 use Symfony\Component\HttpFoundation\Response;
91- use Symfony\Component\HttpKernel \Exception\FlattenException;
93+ use Symfony\Component\Debug \Exception\FlattenException;
9294
9395 class ErrorController
9496 {
You can’t perform that action at this time.
0 commit comments