class MiddlewareDelegate implements DelegateInterface (View source)

A middleware delegate for running the next delegate

Properties

private MiddlewareInterface $middleware
private DelegateInterface $nextDelegate

Methods

__construct(MiddlewareInterface $middleware, DelegateInterface $nextDelegate)

No description

Response
next(Request $request)

Dispatch the next available middleware and return the response.

Details

__construct(MiddlewareInterface $middleware, DelegateInterface $nextDelegate)

Parameters

MiddlewareInterface $middleware
DelegateInterface $nextDelegate

Response next(Request $request)

Dispatch the next available middleware and return the response.

Parameters

Request $request

Return Value

Response