From 16daca4ec053cb6ddcd038a3b71767f1f54ee538 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Mon, 20 Oct 2014 21:11:07 +0200 Subject: [PATCH] fix route prefix in PHP code example --- cookbook/controller/error_pages.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cookbook/controller/error_pages.rst b/cookbook/controller/error_pages.rst index 951a02fa823..35199483430 100644 --- a/cookbook/controller/error_pages.rst +++ b/cookbook/controller/error_pages.rst @@ -191,7 +191,7 @@ To use this feature, you need to have a definition in your $collection->addCollection( $loader->import('@TwigBundle/Resources/config/routing/errors.xml') ); - $collection->addPrefix("/error"); + $collection->addPrefix("/_error"); return $collection; @@ -326,7 +326,7 @@ another page or rendering specialized error pages. If your listener calls ``setResponse()`` on the :class:`Symfony\\Component\\HttpKernel\\Event\\GetResponseForExceptionEvent`, - event propagation will be stopped and the response will be sent to + event propagation will be stopped and the response will be sent to the client. This approach allows you to create centralized and layered error @@ -338,7 +338,7 @@ several) listeners deal with them. To see an example, have a look at the `ExceptionListener`_ in the Security Component. - + It handles various security-related exceptions that are thrown in your application (like :class:`Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException`) and takes measures like redirecting the user to the login page,