From 2a2faa4f4689920cbade1fc1867e9f5e587794c7 Mon Sep 17 00:00:00 2001 From: Antoine Lamirault Date: Thu, 20 Mar 2025 22:45:30 +0100 Subject: [PATCH] [HttpKernel] Support Uid in #[MapQueryParameter] --- controller.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/controller.rst b/controller.rst index b33eed08360..693784885da 100644 --- a/controller.rst +++ b/controller.rst @@ -371,6 +371,11 @@ The ``MapQueryParameter`` attribute supports the following argument types: * ``float`` * ``int`` * ``string`` +* Objects that extend :class:`Symfony\\Component\\Uid\\AbstractUid` + +.. versionadded:: 7.3 + + The support of ``AbstractUid`` was introduced in Symfony 7.3. ``#[MapQueryParameter]`` can take an optional argument called ``filter``. You can use the `Validate Filters`_ constants defined in PHP::