File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -136,15 +136,15 @@ The default exception controller is registered as a service - the actual
136
136
class is ``Symfony\Bundle\TwigBundle\Controller\ExceptionController ``.
137
137
138
138
To do this, create a new controller class and make it extend Symfony's default
139
- Symfony\B undle\T wigBundle\C ontroller\E xceptionController class.
139
+ `` Symfony\Bundle\TwigBundle\Controller\ExceptionController `` class.
140
140
141
141
There are several methods you can override to customize different parts of how
142
- the error page is rendered. You could ie replace the default exception
143
- controller `` twig.controller.exception: showAction `` with your own method
144
- and handle it however you want .
142
+ the error page is rendered. You could, for example, override the entire
143
+ `` showAction `` or just the `` findTemplate `` method, which locates which
144
+ template should be rendered .
145
145
146
146
To make Symfony use your exception controller instead of the default, set the
147
- :ref: `twig.exception_controller <config-twig-exception-controller> option
147
+ :ref: `twig.exception_controller <config-twig-exception-controller >` option
148
148
in app/config/config.yml.
149
149
150
150
.. tip ::
You can’t perform that action at this time.
0 commit comments