-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Description
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
Labels
No labels