Skip to content

Commit

Permalink
[#6224] some tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Feb 7, 2016
1 parent 2aac761 commit 75142a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cookbook/controller/error_pages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ In that case, you might want to override one or both of the ``showAction()`` and
# app/config/services.yml
services:
app.exception_controller:
class: AppBundle\CustomExceptionController
class: AppBundle\Controller\CustomExceptionController
arguments: ['@twig', '%kernel.debug%']
.. code-block:: xml
Expand Down Expand Up @@ -264,6 +264,7 @@ In that case, you might want to override one or both of the ``showAction()`` and
new Reference('twig'),
'%kernel.debug%'
));
$container->setDefinition('app.exception_controller', $definition);
And then configure ``twig.exception_controller`` using the controller as
services syntax (e.g. ``app.exception_controller:showAction``).
Expand Down

0 comments on commit 75142a5

Please sign in to comment.