}class WithMapQueryStringController{ public function __invoke(#[MapQueryString] ?QueryString $query): Response
{ if (!
$query) { return new Response('', Response::HTTP_NO_CONTENT
);
} return new JsonResponse( ['filter' =>
['status' =>
$query->filter->status, 'quantity' =>
$query->filter->quantity
]],
);
}}class WithMapRequestPayloadController{ public function __invoke(#[MapRequestPayload] ?RequestBody $body, Request $request): Response
{ if ('json' ===
$request->
getPreferredFormat('json'
)) { if (!
$body) {