Skip to content

Commit 4820509

Browse files
committed
minor symfony#10934 Recommend to install TwigBundle in the Customize Error Pages article (javiereguiluz)
This PR was merged into the 4.1 branch. Discussion ---------- Recommend to install TwigBundle in the Customize Error Pages article This continues symfony#10415 to fix the issue differently. Commits ------- 6ee49fb Recommend to install TwigBundle in the Customize Error Pages article
2 parents d33f73b + 6ee49fb commit 4820509

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

controller/error_pages.rst

+9
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ In Symfony applications, all errors are treated as exceptions, no matter if they
99
are just a 404 Not Found error or a fatal error triggered by throwing some
1010
exception in your code.
1111

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+
1220
In the :doc:`development environment </configuration/environments>`,
1321
Symfony catches all the exceptions and displays a special **exception page**
1422
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.
351359
and takes measures like redirecting the user to the login page, logging them
352360
out and other things.
353361

362+
.. _`TwigBundle`: https://github.com/symfony/twig-bundle
354363
.. _`WebfactoryExceptionsBundle`: https://github.com/webfactory/exceptions-bundle
355364
.. _`Symfony Standard Edition`: https://github.com/symfony/symfony-standard/
356365
.. _`ExceptionListener`: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Security/Http/Firewall/ExceptionListener.php

0 commit comments

Comments
 (0)