Skip to content

Commit 4dd7073

Browse files
committed
minor #20783 [HttpKernel] Document supported types #[MapQueryParameter] (alamirault)
This PR was merged into the 6.4 branch. Discussion ---------- [HttpKernel] Document supported types `#[MapQueryParameter]` Before doing #20626 I think we need to document already supported types by `#[MapQueryParameter]` attribute https://github.com/symfony/symfony/blob/5a9a3515b78f1a499e8e5f86636cbdc205067e24/src/Symfony/Component/HttpKernel/Controller/ArgumentResolver/QueryParameterValueResolver.php#L22 Commits ------- d873aec Document supported types #[MapQueryParameter]
2 parents 5e626cd + d873aec commit 4dd7073

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

controller.rst

+10
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,16 @@ attribute, arguments of your controller's action can be automatically fulfilled:
367367
// ...
368368
}
369369

370+
:class:`Symfony\\Component\\HttpKernel\\Attribute\\MapQueryParameter` support
371+
arguments of type:
372+
373+
- ``string``
374+
- ``int``
375+
- ``float``
376+
- ``bool``
377+
- ``array``
378+
- ``\BackedEnum``
379+
370380
``#[MapQueryParameter]`` can take an optional argument called ``filter``. You can use the
371381
`Validate Filters`_ constants defined in PHP::
372382

0 commit comments

Comments
 (0)