mini\Dispatcher\HttpDispatcher::buildMiddlewareChain() Method

private

Signature

private function buildMiddlewareChain(Psr\Http\Server\RequestHandlerInterface $handler): Psr\Http\Server\RequestHandlerInterface

Parameters

Name Type Default Description
$handler Psr\Http\Server\RequestHandlerInterface required Documentation missing

Returns

Psr\Http\Server\RequestHandlerInterface

Documentation

Build middleware chain wrapper around the final handler

Wraps the handler (Router) with all registered middleware in reverse order to ensure FIFO execution (first added middleware executes first).

Source

src/Dispatcher/HttpDispatcher.php:265-289