Skip to content

Commit 85c7c5e

Browse files
committed
minor #21207 Add tip about default value (tcoch)
This PR was squashed before being merged into the 6.4 branch. Discussion ---------- Add tip about default value Related to symfony/symfony#61094 Commits ------- 5fd4e23 Add tip about default value
2 parents a4619de + 5fd4e23 commit 85c7c5e

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
@@ -936,6 +936,10 @@ other configuration formats they are defined with the ``defaults`` option:
936936
Now, when the user visits ``/blog``, the ``blog_list`` route will match and
937937
``$page`` will default to a value of ``1``.
938938

939+
.. tip::
940+
941+
The default value is allowed to not match the requirement.
942+
939943
.. warning::
940944

941945
You can have more than one optional parameter (e.g. ``/blog/{slug}/{page}``),

0 commit comments

Comments
 (0)