Esc
API Index — Namespaces, Packages, Reports, Indices
PathDispatchHandler
in package
implements
RequestHandlerInterface
FinalYes
Terminal of an App::when() path-scoped middleware onion. Once every
path-scoped middleware has called its $next, this hands control to the
router's matchAndDispatch() — route matching + dispatch (including any
per-route middleware: and, for /api/*, ZealAPI's in-file $middleware).
Stateless: only the HTTP method is baked in at construction; the rest of the
match+dispatch reads coroutine-local request state from $g.
Table of Contents
Interfaces
- RequestHandlerInterface
Properties
- $dispatcher : ResponseMiddleware
- $method : string
Methods
- __construct() : mixed
- handle() : ResponseInterface
Properties
$dispatcher
private
ResponseMiddleware
$dispatcher
$method
private
string
$method
Methods
__construct()
public
__construct(ResponseMiddleware $dispatcher, string $method) : mixed
Parameters
- $dispatcher : ResponseMiddleware
- $method : string
handle()
public
handle(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface