Класс Runner
Выполняет очередь middleware и предоставляет вызываемый объект next, позволяющий итерировать очередь.
Краткое описание свойств
-
$indexprotectedТекущий индекс в очереди middleware.integer - Очередь middleware, которая выполняется.
$middlewareprotected
Краткое описание методов
- __invoke() public
- run() public
Подробное описание методов
__invoke()source public
__invoke( Psr\Http\Message\ServerRequestInterface $request , Psr\Http\Message\ResponseInterface $response )
Параметры
- Psr\Http\Message\ServerRequestInterface
$request - Запрос сервера
- Psr\Http\Message\ResponseInterface
$response - Объект ответа
Возвращаемое значение
Psr\Http\Message\ResponseInterfaceОбновлённый ответ
run()source public
run( Cake\Http\MiddlewareQueue $middleware , Psr\Http\Message\ServerRequestInterface $request , Psr\Http\Message\ResponseInterface $response )
Параметры
-
Cake\Http\MiddlewareQueue$middleware - Очередь middleware
- Psr\Http\Message\ServerRequestInterface
$request - Запрос сервера
- Psr\Http\Message\ResponseInterface
$response - Ответ
Возвращаемое значение
Psr\Http\Message\ResponseInterfaceОбъект ответа
Подробное описание свойств
© 2005–2017 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.4/class-Cake.Http.Runner.html