PHP Класс Zend\Stratigility\Middleware\OriginalMessages

This middleware will add request attributes as follows: - "originalRequest", representing the request provided to this middleware. - "originalResponse", representing the response provided to this middleware. - "originalUri", representing the URI composed by the request provided to this middleware. These can then be reference later, for tasks such as: - Determining the base path when generating a URI (as layers may receive URIs stripping path segments). - Determining if changes to the response have occurred. - Providing prototypes for factories.
Наследование: implements Zend\Stratigility\MiddlewareInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
__invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next = null ) : Psr\Http\Message\ResponseInterface

Описание методов

__invoke() публичный Метод

public __invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next = null ) : Psr\Http\Message\ResponseInterface
$request Psr\Http\Message\ServerRequestInterface
$response Psr\Http\Message\ResponseInterface
$next callable
Результат Psr\Http\Message\ResponseInterface