Skip to content

Commit b87f420

Browse files
clemens-tolboomweaverryan
authored andcommitted
Fixed @weaverryan: backticks and rephase method overrides.
1 parent 207c1a8 commit b87f420

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cookbook/controller/error_pages.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,15 @@ The default exception controller is registered as a service - the actual
136136
class is ``Symfony\Bundle\TwigBundle\Controller\ExceptionController``.
137137

138138
To do this, create a new controller class and make it extend Symfony's default
139-
Symfony\Bundle\TwigBundle\Controller\ExceptionController class.
139+
``Symfony\Bundle\TwigBundle\Controller\ExceptionController`` class.
140140

141141
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.
145145

146146
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
148148
in app/config/config.yml.
149149

150150
.. tip::

0 commit comments

Comments
 (0)