W3cubDocs

/CakePHP 3.8

Class Runner

Executes the middleware queue and provides the next callable that allows the queue to be iterated.

Namespace: Cake\Http
Location: Http/Runner.php

Properties summary

Method Summary

Method Detail

__invoke()source 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

run()source 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

Properties detail

$indexsource

protected integer

The current index in the middleware queue.

$middlewaresource

protected Cake\Http\MiddlewareQueue

The middleware queue being run.

© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/3.8/class-Cake.Http.Runner.html