Skip to content

Commit 505619f

Browse files
committed
minor #21119 [Routing] Document _query parameter for URL generation (mttsch)
This PR was merged into the 7.4 branch. Discussion ---------- [Routing] Document `_query` parameter for URL generation Fix #21055 <!-- 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 `7.x` for features of unreleased versions). --> Commits ------- ad966a7 [Routing] Document _query parameter for URL generation
2 parents ee6841b + ad966a7 commit 505619f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

routing.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,17 @@ special parameters created by Symfony:
11511151
This is used for such things as setting the ``Content-Type`` of the response
11521152
(e.g. a ``json`` format translates into a ``Content-Type`` of ``application/json``).
11531153

1154+
``_query``
1155+
Used to add query parameters to the generated URL.
1156+
1157+
.. versionadded:: 7.4
1158+
1159+
The ``_query`` parameter was introduced in Symfony 7.4.
1160+
1161+
.. deprecated:: 7.4
1162+
1163+
Passing a value other than an array as the ``_query`` parameter was deprecated in Symfony 7.4.
1164+
11541165
``_fragment``
11551166
Used to set the fragment identifier, which is the optional last part of a URL that
11561167
starts with a ``#`` character and is used to identify a portion of a document.

0 commit comments

Comments
 (0)