Skip to content

Commit d43d930

Browse files
committed
feature #14671 Document routing inline requirements and defaults for host (julienfalque)
This PR was merged into the 5.2 branch. Discussion ---------- Document routing inline requirements and defaults for host Relates to symfony/symfony#37696. Commits ------- 8c21f36 Document routing inline requirements and defaults for host
2 parents 01cb2b0 + 8c21f36 commit d43d930

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

routing.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,11 @@ concise, but it can decrease route readability when requirements are complex:
790790
// ...
791791
};
792792
793+
.. versionadded:: 5.2
794+
795+
Since Symfony 5.2, inline parameter requirements are also supported in the
796+
host. Before Symfony 5.2, they were supported in the path only.
797+
793798
Optional Parameters
794799
~~~~~~~~~~~~~~~~~~~
795800

@@ -984,6 +989,11 @@ parameter:
984989
To give a ``null`` default value to any parameter, add nothing after the
985990
``?`` character (e.g. ``/blog/{page?}``).
986991

992+
.. versionadded:: 5.2
993+
994+
Since Symfony 5.2, inline parameter default values are also supported in
995+
the host. Before Symfony 5.2, they were supported in the path only.
996+
987997
Priority Parameter
988998
~~~~~~~~~~~~~~~~~~
989999

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy