From 75a8b5136c6e1fc227d7959dec0c4b9cd8b342ea Mon Sep 17 00:00:00 2001 From: Damir Ahmedshin Date: Thu, 6 Jul 2023 12:44:28 +0300 Subject: [PATCH] Update controller.rst To make the Mapping Request Payload work properly, it is necessary to install the phpstan/phpdoc-parser and phpdocumentor/type-resolver components. Otherwise, nested DTOs within an array will not function correctly. To see: /symfony/framework-bundle/DependencyInjection/FrameworkExtension.php --- controller.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/controller.rst b/controller.rst index 1f88729204d..c493c45b339 100644 --- a/controller.rst +++ b/controller.rst @@ -448,6 +448,11 @@ You can customize the validation groups used during the mapping thanks to the Mapping Request Payload ~~~~~~~~~~~~~~~~~~~~~~~ +.. note:: + + This extractor depends on the `phpstan/phpdoc-parser`_ and + `phpdocumentor/type-resolver`_ libraries. + When creating an API and dealing with other HTTP methods than ``GET`` (like ``POST`` or ``PUT``), user's data are not stored in the query string but directly in the request payload, like this: