Skip to content

Work attribute MapQueryParameter with UidValueResolver #51618

Closed
@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy