Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4820509

Browse filesBrowse files
committed
minor #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 #10415 to fix the issue differently. Commits ------- 6ee49fb Recommend to install TwigBundle in the Customize Error Pages article
2 parents d33f73b + 6ee49fb commit 4820509
Copy full SHA for 4820509

File tree

1 file changed

+9
-0
lines changed
Filter options

1 file changed

+9
-0
lines changed

‎controller/error_pages.rst

Copy file name to clipboardExpand all lines: controller/error_pages.rst
+9Lines changed: 9 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.