Skip to content

Commit 9041533

Browse files
committed
minor #17841 [Routing] Minor (ThomasLandauer)
This PR was merged into the 5.4 branch. Discussion ---------- [Routing] Minor Page: https://symfony.com/doc/5.4/routing.html Reason: Might be misunderstood as "unique throughout the entire project" It's explained 2 paragraphs further down: > Routes can define any number of parameters, but each of them can only be used once on each route <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- 201b622 Minor
2 parents 65ceeb9 + 201b622 commit 9041533

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

routing.rst

+2-3
Original file line numberDiff line numberDiff line change
@@ -498,9 +498,8 @@ However, it's common to define routes where some parts are variable. For example
498498
the URL to display some blog post will probably include the title or slug
499499
(e.g. ``/blog/my-first-post`` or ``/blog/all-about-symfony``).
500500

501-
In Symfony routes, variable parts are wrapped in ``{ ... }`` and they must have
502-
a unique name. For example, the route to display the blog post contents is
503-
defined as ``/blog/{slug}``:
501+
In Symfony routes, variable parts are wrapped in ``{ }``.
502+
For example, the route to display the blog post contents is defined as ``/blog/{slug}``:
504503

505504
.. configuration-block::
506505

0 commit comments

Comments
 (0)