From d873aec48150e48f16afb2fa70b1a531c6827c85 Mon Sep 17 00:00:00 2001 From: Antoine Lamirault Date: Thu, 20 Mar 2025 22:38:11 +0100 Subject: [PATCH] Document supported types #[MapQueryParameter] --- controller.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/controller.rst b/controller.rst index 3d4f84b4888..f09769ebc02 100644 --- a/controller.rst +++ b/controller.rst @@ -367,6 +367,16 @@ attribute, arguments of your controller's action can be automatically fulfilled: // ... } +:class:`Symfony\\Component\\HttpKernel\\Attribute\\MapQueryParameter` support +arguments of type: + +- ``string`` +- ``int`` +- ``float`` +- ``bool`` +- ``array`` +- ``\BackedEnum`` + ``#[MapQueryParameter]`` can take an optional argument called ``filter``. You can use the `Validate Filters`_ constants defined in PHP::