8000 minor #6506 Added a tip about routes and container parameters (javier… · symfony/symfony-docs@154eb93 · GitHub
[go: up one dir, main page]

Skip to content

Commit 154eb93

Browse files
committed
minor #6506 Added a tip about routes and container parameters (javiereguiluz)
This PR was squashed before being merged into the 2.3 branch (closes #6506). Discussion ---------- Added a tip about routes and container parameters This replaces #6505. Commits ------- ae0f2c9 Added a tip about routes and container parameters
2 parents cb6a26c + ae0f2c9 commit 154eb93

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

book/routing.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,13 @@ Path Parameters
808808
``/es`` *won't match this route*
809809
======= ========================
810810

811+
.. tip::
812+
813+
The route requirements can also include container parameters, as explained
814+
in :doc:`this article </cookbook/routing/service_container_parameters>`.
815+
This comes in handy when the regular expression is very complex and used
816+
repeatedly in your application.
817+
811818
.. index::
812819
single: Routing; Method requirement
813820

0 commit comments

Comments
 (0)
0