Skip to content

Attribute for UriSigned controllers #61149

@alexander-schranz

Description

@alexander-schranz

Description

What do you think if there is a attribute, maybe also a route option to force that a specific controller always have a signed URI.

At first state this should in my opinion only effect the call of the route. In future we maybe could think if automatically sign the url when router->generate is called could happen.

Not sure yet where such attribute should live in the urisigner itself is part of the http foundation. But it could also be part of routing.

Example

class MyController
{
    #[UriSigned]
    public function me(): Response
    {

    }
}
my_route:
    controller: MyController::me
    options:
        uri_signed: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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