It would be nice if you could create a DTO to retrieve and validate all the query parameters from $request->query.
#[Route("/test", name: "test", methods: ["GET"])]
public function registration(
BodyDto $bodyDto // implements `InputInterface`, retrieves and validates the request's body
QueryDto $queryDto // implements `QueryInputInterface` retrieves and validates the request's query parameters
): Response {
// ...
}
If this change is made InputInterface may need a rename to something like BodyInputInterface (or something like that) to signal the difference with the query parameter version.
It would be nice if you could create a DTO to retrieve and validate all the query parameters from
$request->query
.If this change is made
InputInterface
may need a rename to something likeBodyInputInterface
(or something like that) to signal the difference with the query parameter version.