Class Runner
Executes the middleware queue and provides the next
callable
that allows the queue to be iterated.
Namespace: Cake\Http
Property Summary
-
$index protected
int
The current index in the middleware queue.
-
$middleware protected
Cake\Http\MiddlewareQueue
The middleware queue being run.
Method Summary
-
__invoke() public
-
run() public
Method Detail
__invoke() ¶ public
__invoke(Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response): Psr\Http\Message\ResponseInterface
Parameters
-
Psr\Http\Message\ServerRequestInterface
$request The server request
-
Psr\Http\Message\ResponseInterface
$response The response object
Returns
Psr\Http\Message\ResponseInterface
run() ¶ public
run(Cake\Http\MiddlewareQueue $middleware, Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response): Psr\Http\Message\ResponseInterface
Parameters
-
Cake\Http\MiddlewareQueue
$middleware The middleware queue
-
Psr\Http\Message\ServerRequestInterface
$request The Server Request
-
Psr\Http\Message\ResponseInterface
$response The response
Returns
Psr\Http\Message\ResponseInterface