Skip to content

Commit

Permalink
bug #6240 [#6224] some tweaks (xabbuh)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.3 branch.

Discussion
----------

[#6224] some tweaks

Commits
-------

75142a5 [#6224] some tweaks
  • Loading branch information
wouterj committed Feb 7, 2016
2 parents 2aac761 + 75142a5 commit b559343
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 b559343

Please sign in to comment.