PHP Class 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.
Inheritance: implements Zend\Stratigility\MiddlewareInterface
Mostrar archivo Open project: zendframework/zend-stratigility

Public Methods

Method Description
__invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next = null ) : Psr\Http\Message\ResponseInterface

Method Details

__invoke() public method

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
return Psr\Http\Message\ResponseInterface