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 24425ad

Browse filesBrowse files
committed
Merge branch '4.1' into 4.2
* 4.1: Updated a dependency of the build system Recommend to install TwigBundle in the Customize Error Pages article
2 parents 928a7e5 + 33e1d59 commit 24425ad
Copy full SHA for 24425ad

File tree

Expand file treeCollapse file tree

2 files changed

+10
-1
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+10
-1
lines changed

‎_build/.requirements.txt

Copy file name to clipboardExpand all lines: _build/.requirements.txt
+1-1Lines 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

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.