Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c5e89ac

Browse files
committed
moved exception_controller to the twig section
1 parent 0f0414c commit c5e89ac

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

reference/configuration/framework.rst

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Configuration
1717

1818
* `charset`_
1919
* `secret`_
20-
* `exception_controller`_
2120
* `ide`_
2221
* `test`_
2322
* `form`_
@@ -44,20 +43,6 @@ it's used for generating the CSRF tokens, but it could be used in any other
4443
context where having a unique string is useful. It becomes the service container
4544
parameter named ``kernel.secret``.
4645

47-
exception_controller
48-
....................
49-
50-
**type**: ``string`` **default**: ``Symfony\\Bundle\\FrameworkBundle\\Controller\\ExceptionController::showAction``
51-
52-
This is the controller that is activated after an exception is thrown anywhere
53-
in your application. The default controller
54-
(:class:`Symfony\\Bundle\\FrameworkBundle\\Controller\\ExceptionController`)
55-
is what's responsible for rendering specific templates under different error
56-
conditions (see :doc:`/cookbook/controller/error_pages`). Modifying this
57-
option is advanced. If you need to customize an error page you should use
58-
the previous link. If you need to perform some behavior on an exception,
59-
you should add a listener to the ``kernel.exception`` event (see :ref:`dic-tags-kernel-event-listener`).
60-
6146
ide
6247
...
6348

@@ -116,7 +101,6 @@ Full Default Configuration
116101
# general configuration
117102
charset: ~
118103
secret: ~ # Required
119-
exception_controller: Symfony\Bundle\FrameworkBundle\Controller\ExceptionController::showAction
120104
ide: ~
121105
test: ~
122106

reference/configuration/twig.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ TwigBundle Configuration Reference
3535
debug: %kernel.debug%
3636
strict_variables: ~
3737
auto_reload: ~
38+
exception_controller: Symfony\Bundle\TwigBundle\Controller\ExceptionController::showAction
3839
3940
.. code-block:: xml
4041
@@ -73,3 +74,20 @@ TwigBundle Configuration Reference
7374
'debug' => '%kernel.debug%',
7475
'strict_variables' => false,
7576
));
77+
78+
Configuration
79+
-------------
80+
81+
exception_controller
82+
....................
83+
84+
**type**: ``string`` **default**: ``Symfony\\Bundle\\TwigBundle\\Controller\\ExceptionController::showAction``
85+
86+
This is the controller that is activated after an exception is thrown anywhere
87+
in your application. The default controller
88+
(:class:`Symfony\\Bundle\\TwigBundle\\Controller\\ExceptionController`)
89+
is what's responsible for rendering specific templates under different error
90+
conditions (see :doc:`/cookbook/controller/error_pages`). Modifying this
91+
option is advanced. If you need to customize an error page you should use
92+
the previous link. If you need to perform some behavior on an exception,
93+
you should add a listener to the ``kernel.exception`` event (see :ref:`dic-tags-kernel-event-listener`).

0 commit comments

Comments
 (0)