10000 Merge branch '4.2' · symfony/symfony-docs@3601fec · GitHub
[go: up one dir, main page]

Skip to content

Commit 3601fec

Browse files
committed
Merge branch '4.2'
* 4.2: Updated a dependency of the build system Recommend to install TwigBundle in the Customize Error Pages article
2 parents fb1cd56 + 24425ad commit 3601fec

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

_build/.requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Jinja2==2.9.6
66
MarkupSafe==1.0
77
Pygments==2.2.0
88
pytz==2017.2
9-
requests==2.12.5
9+
requests==2.20.0
1010
six==1.10.0
1111
snowballstemmer==1.2.1
1212
Sphinx==1.3.6

controller/error_pages.rst

Lines 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