You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"])]
publicfunctionregistration(
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: