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
65
65
powerful than ever. For instance, use the built-in ``ExceptionListener `` to
66
66
make your error management configurable::
67
67
68
- $errorHandler = function (HttpKernel\Exception\FlattenException $exception) {
68
+ use Symfony\Component\Debug\Exception\FlattenException;
69
+
70
+ $errorHandler = function (FlattenException $exception) {
69
71
$msg = 'Something went wrong! ('.$exception->getMessage().')';
70
72
71
73
return new Response($msg, $exception->getStatusCode());
@@ -88,7 +90,7 @@ The error controller reads as follows::
88
90
namespace Calendar\Controller;
89
91
90
92
use Symfony\Component\HttpFoundation\Response;
91
- use Symfony\Component\HttpKernel \Exception\FlattenException;
93
+ use Symfony\Component\Debug \Exception\FlattenException;
92
94
93
95
class ErrorController
94
96
{
You can’t perform that action at this time.
0 commit comments