Class Runner
Executes the middleware queue and provides the next
callable
that allows the queue to be iterated.
Properties summary
-
$index
protectedinteger
The current index in the middleware queue. -
$middleware
protectedThe 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 )
Parameters
- Psr\Http\Message\ServerRequestInterface $request
- The server request
- Psr\Http\Message\ResponseInterface $response
- The response object
Returns
Psr\Http\Message\ResponseInterface
An updated response
An updated response
run() public ¶
run( Cake\Http\MiddlewareQueue
$middleware , Psr\Http\Message\ServerRequestInterface $request , Psr\Http\Message\ResponseInterface $response )
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
A response object
A response object