class DispatchMiddleware implements MiddlewareInterface (View source)

A dispatch middleware that runs the current HTTP request through the MVC stack

Properties

protected Dispatcher $dispatcher

Methods

ResponseInterface
process(ServerRequestInterface $request, RequestHandlerInterface $next)

Create an action request from stored route match values and dispatch to that

Details

ResponseInterface process(ServerRequestInterface $request, RequestHandlerInterface $next)

Create an action request from stored route match values and dispatch to that

Parameters

ServerRequestInterface $request
RequestHandlerInterface $next

Return Value

ResponseInterface