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.
파일 보기
프로젝트 열기: zendframework/zend-stratigility
공개 메소드들
메소드 |
설명 |
|
__invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next = null ) : Psr\Http\Message\ResponseInterface |
|
|
메소드 상세
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 |
|