class DispatcherDelegate implements DelegateInterface (View source)

A middleware delegate for dispatching a request and returning a response.

This is typically the last delegate in the stack in order to actually create the response.

Properties

private DispatcherInterface $dispatcher

Methods

__construct(DispatcherInterface $dispatcher)

DispatcherFrame constructor.

Response
next(Request $request)

Dispatch the next available middleware and return the response.

Details

__construct(DispatcherInterface $dispatcher)

DispatcherFrame constructor.

Parameters

DispatcherInterface $dispatcher

Response next(Request $request)

Dispatch the next available middleware and return the response.

Parameters

Request $request

Return Value

Response