8000 [Routing] Update ignoreAttributes description · symfony/symfony-docs@d1dbc7b · GitHub
[go: up one dir, main page]

Skip to content

Commit d1dbc7b

Browse files
guhemamajaviereguiluz
authored andcommitted
[Routing] Update ignoreAttributes description
The documentation does not mention one can ignore all attributes or specify which of them to ignore. This is pretty clear to someone calling `\Symfony\Bundle\FrameworkBundle\Controller\RedirectController::redirectAction`, but not to someone using YAML.
1 parent aca9366 commit d1dbc7b
< 8000 /pre>

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

routing.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1626,8 +1626,10 @@ Use the ``RedirectController`` to redirect to other routes and URLs:
16261626
# * for temporary redirects, it uses the 307 status code instead of 302
16271627
# * for permanent redirects, it uses the 308 status code instead of 301
16281628
keepRequestMethod: true
1629-
# add this to remove the original route attributes when redirecting
1629+
# add this to remove all original route attributes when redirecting
16301630
ignoreAttributes: true
1631+
# or specify which attributes to ignore
1632+
# ignoreAttributes: [ offset, limit ]
16311633
16321634
legacy_doc:
16331635
path: /legacy/doc

0 commit comments

Comments
 (0)
0