generated from chevere/package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Need to support middleware arguments in the form of TheMiddleware::class:arg1,arg2 or perhaps middleware(TheMiddleware::class, pairs).
The arguments must be stored at MiddlewareName, used at Router to pass $middleware->setUp(...$args).
Middleware with arguments must implement a given interface for setUp(mixed ...$arg), where it stores the arguments at class properties available to the handle method.
Alternatively we could spawn another MiddlewareInterface which doesn't restrict parameters on handle.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels