class ResolveRoute implements MiddlewareInterface

Properties

protected GroupCountBased|null $dispatcher

Methods

__construct(RouteCollection $routes)

No description

ResponseInterface
process(ServerRequestInterface $request, RequestHandlerInterface $handler)

Resolve the given request from our route collection.

GroupCountBased
getDispatcher()

No description

Details

__construct(RouteCollection $routes)

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 GroupCountBased getDispatcher()

Return Value

GroupCountBased