Skip to content

Work attribute MapQueryParameter with UidValueResolver #51618

@pilot114

Description

@pilot114

Description

Currently, UidValueResolver only works with request attributes. However, the MapQueryParameter accepts a "resolver" parameter, which means you can flexibly bind query parameters with different resolvers.

In general, it is possible that the problem is somewhat broader: resolvers could work on all attributes where "resolver" parameter passing is possible. At least within the package http-kernel

Example

It would be great if the following combination would work:

#[MapQueryParameter(resolver: UidValueResolver::class)] ?Uuid $groupId = null

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions