class MiddlewaresDispatcher implements RequestHandlerInterface

Methods

__construct(MiddlewaresDispatcher $dispatcher, int $nextIndex)

No description

ResponseInterface
handle(ServerRequestInterface $request)

No description

ResponseInterface
dispatch(int $index, ServerRequestInterface $request)

Dispatch the middleware at the given index.

Details

at line 65
__construct(MiddlewaresDispatcher $dispatcher, int $nextIndex)

No description

Parameters

MiddlewaresDispatcher $dispatcher
int $nextIndex

at line 71
ResponseInterface handle(ServerRequestInterface $request)

No description

Parameters

ServerRequestInterface $request

Return Value

ResponseInterface

at line 51
ResponseInterface dispatch(int $index, ServerRequestInterface $request)

Dispatch the middleware at the given index.

Parameters

int $index

The index of the middleware to dispatch.

ServerRequestInterface $request

The incoming server request.

Return Value

ResponseInterface

The response generated by the middleware or the final handler.