RouterMiddleware
in package
implements
MiddlewareInterface
Read onlyYes
FinalYes
Tags
Table of Contents
Interfaces
- MiddlewareInterface
Methods
- __construct() : mixed
- process() : ResponseInterface
Methods
__construct()
public
__construct(Dispatcher $dispatcher, array<string, ResolvedHandler> $handlersByRouteKey, array<string, array<int, MiddlewareInterface>> $routeMiddlewaresByKey, MiddlewarePipeline $pipeline, ActorSystem $system, ResolvedActorTable $actors, EventDispatcherInterface|null $events) : mixed
Parameters
- $dispatcher : Dispatcher
- $handlersByRouteKey : array<string, ResolvedHandler>
-
key = "METHOD:path"
- $routeMiddlewaresByKey : array<string, array<int, MiddlewareInterface>>
- $pipeline : MiddlewarePipeline
- $system : ActorSystem
- $actors : ResolvedActorTable
- $events : EventDispatcherInterface|null
process()
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface