File tree 1 file changed +9
-0
lines changed
Filter options
1 file changed +9
-0
lines changed
Original file line number Diff line number Diff line change @@ -9,6 +9,14 @@ In Symfony applications, all errors are treated as exceptions, no matter if they
9
9
are just a 404 Not Found error or a fatal error triggered by throwing some
10
10
exception in your code.
11
11
12
+ If your app has the `TwigBundle `_ installed, a special controller handles these
13
+ exceptions. This controller displays debug information for errors and allows to
14
+ customize error pages, so run this command to make sure the bundle is installed:
15
+
16
+ .. code-block :: terminal
17
+
18
+ $ composer require twig
19
+
12
20
In the :doc: `development environment </configuration/environments >`,
13
21
Symfony catches all the exceptions and displays a special **exception page **
14
22
with lots of debug information to help you discover the root problem:
@@ -351,6 +359,7 @@ time and again, you can have just one (or several) listeners deal with them.
351
359
and takes measures like redirecting the user to the login page, logging them
352
360
out and other things.
353
361
362
+ .. _`TwigBundle` : https://github.com/symfony/twig-bundle
354
363
.. _`WebfactoryExceptionsBundle` : https://github.com/webfactory/exceptions-bundle
355
364
.. _`Symfony Standard Edition` : https://github.com/symfony/symfony-standard/
356
365
.. _`ExceptionListener` : https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Security/Http/Firewall/ExceptionListener.php
You can’t perform that action at this time.
0 commit comments