RoutingMiddleware
in package
implements
MiddlewareInterface
Takes care of routing requests to handlers
Table of Contents
Interfaces
- MiddlewareInterface
Methods
- __construct() : mixed
- process() : ResponseInterface
- Handle routing a request.
Methods
__construct()
public
__construct(RoutingHandler $requestHandler) : mixed
Parameters
- $requestHandler : RoutingHandler
Return values
mixed —process()
Handle routing a request.
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface