File tree Expand file tree Collapse file tree 2 files changed +18
-16
lines changed Expand file tree Collapse file tree 2 files changed +18
-16
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ Configuration
17
17
18
18
* `charset `_
19
19
* `secret `_
20
- * `exception_controller `_
21
20
* `ide `_
22
21
* `test `_
23
22
* `form `_
@@ -44,20 +43,6 @@ it's used for generating the CSRF tokens, but it could be used in any other
44
43
context where having a unique string is useful. It becomes the service container
45
44
parameter named ``kernel.secret ``.
46
45
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
-
61
46
ide
62
47
...
63
48
@@ -116,7 +101,6 @@ Full Default Configuration
116
101
# general configuration
117
102
charset : ~
118
103
secret : ~ # Required
119
- exception_controller : Symfony\Bundle\FrameworkBundle\Controller\ExceptionController::showAction
120
104
ide : ~
121
105
test : ~
122
106
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ TwigBundle Configuration Reference
35
35
debug : %kernel.debug%
36
36
strict_variables : ~
37
37
auto_reload : ~
38
+ exception_controller : Symfony\Bundle\TwigBundle\Controller\ExceptionController::showAction
38
39
39
40
.. code-block :: xml
40
41
@@ -73,3 +74,20 @@ TwigBundle Configuration Reference
73
74
'debug' => '%kernel.debug%',
74
75
'strict_variables' => false,
75
76
));
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 `).
You can’t perform that action at this time.
0 commit comments