Skip to content

Commit 75142a5

Browse files
committed
[#6224] some tweaks
1 parent 2aac761 commit 75142a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cookbook/controller/error_pages.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ In that case, you might want to override one or both of the ``showAction()`` and
233233
# app/config/services.yml
234234
services:
235235
app.exception_controller:
236-
class: AppBundle\CustomExceptionController
236+
class: AppBundle\Controller\CustomExceptionController
237237
arguments: ['@twig', '%kernel.debug%']
238238
239239
.. code-block:: xml
@@ -264,6 +264,7 @@ In that case, you might want to override one or both of the ``showAction()`` and
264264
new Reference('twig'),
265265
'%kernel.debug%'
266266
));
267+
$container->setDefinition('app.exception_controller', $definition);
267268
268269
And then configure ``twig.exception_controller`` using the controller as
269270
services syntax (e.g. ``app.exception_controller:showAction``).

0 commit comments

Comments
 (0)