class DispatchRoute

Properties

protected RouteCollection $routes
protected Dispatcher $dispatcher

Methods

__construct(RouteCollection $routes)

<p>Create the middleware instance.</p>

ResponseInterface
__invoke(ServerRequestInterface $request, ResponseInterface $response, callable $out = null)

<p>Dispatch the given request to our route collection.</p>

getDispatcher()

No description

Details

__construct(RouteCollection $routes)

<p>Create the middleware instance.</p>

Parameters

RouteCollection $routes

ResponseInterface __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $out = null)

<p>Dispatch the given request to our route collection.</p>

Parameters

ServerRequestInterface $request
ResponseInterface $response
callable $out

Return Value

ResponseInterface

Exceptions

RouteNotFoundException

protected getDispatcher()