class ResolveRoute implements MiddlewareInterface

Properties

protected RouteCollection $routes
protected Dispatcher $dispatcher

Methods

__construct(RouteCollection $routes)

Create the middleware instance.

ResponseInterface
process(ServerRequestInterface $request, RequestHandlerInterface $handler)

Resolve the given request from our route collection.

getDispatcher()

No description

Details

__construct(RouteCollection $routes)

Create the middleware instance.

Parameters

RouteCollection $routes

ResponseInterface process(ServerRequestInterface $request, RequestHandlerInterface $handler)

Resolve the given request from our route collection.

Parameters

ServerRequestInterface $request
RequestHandlerInterface $handler

Return Value

ResponseInterface

Exceptions

MethodNotAllowedException
RouteNotFoundException

protected getDispatcher()