Skip to content

Commit e51a416

Browse files
committed
minor #7139 Add a warning about routes parameters names limitations (fancyweb, javiereguiluz)
This PR was merged into the 2.7 branch. Discussion ---------- Add a warning about routes parameters names limitations @wouterj @xabbuh I'm sorry guys I had to do a new branch and a new PR because I failed in the old one. I shouldn't have used the fast GitHub edit method. I fixed the indentation to 4 spaces. Also I thought this kind of information fitted more in the "advanced" area along with the special parameters than in the basic examples. Follow up to #7133 Commits ------- cadef60 Use "route placeholder" instead of "route parameter" 6b0f53c Add a warning about routes parameters names limitations
2 parents 9d0b421 + cadef60 commit e51a416

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

routing.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,10 @@ a slash. URLs matching this route might look like:
466466
Symfony provides you with a way to do this by leveraging service container
467467
parameters. Read more about this in ":doc:`/routing/service_container_parameters`".
468468

469+
.. caution::
470+
471+
A route placeholder name cannot start with a digit and cannot be longer than 32 characters.
472+
469473
Special Routing Parameters
470474
~~~~~~~~~~~~~~~~~~~~~~~~~~
471475

0 commit comments

Comments
 (0)