Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 217bf5f

Browse files
committed
minor #4353 [Cookbook][Controller] fix route prefix in PHP code example (xabbuh)
This PR was merged into the master branch. Discussion ---------- [Cookbook][Controller] fix route prefix in PHP code example | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.6 | Fixed tickets | Commits ------- 16daca4 fix route prefix in PHP code example
2 parents 83ed35b + 16daca4 commit 217bf5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cookbook/controller/error_pages.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ To use this feature, you need to have a definition in your
191191
$collection->addCollection(
192192
$loader->import('@TwigBundle/Resources/config/routing/errors.xml')
193193
);
194-
$collection->addPrefix("/error");
194+
$collection->addPrefix("/_error");
195195
196196
return $collection;
197197
@@ -326,7 +326,7 @@ another page or rendering specialized error pages.
326326

327327
If your listener calls ``setResponse()`` on the
328328
:class:`Symfony\\Component\\HttpKernel\\Event\\GetResponseForExceptionEvent`,
329-
event propagation will be stopped and the response will be sent to
329+
event propagation will be stopped and the response will be sent to
330330
the client.
331331

332332
This approach allows you to create centralized and layered error
@@ -338,7 +338,7 @@ several) listeners deal with them.
338338

339339
To see an example, have a look at the `ExceptionListener`_ in the
340340
Security Component.
341-
341+
342342
It handles various security-related exceptions that are thrown in
343343
your application (like :class:`Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException`)
344344
and takes measures like redirecting the user to the login page,

0 commit comments

Comments
 (0)