PHP 인터페이스 Zend\Stratigility\ErrorMiddlewareInterface

Error middleware is essentially the same as the MiddlewareInterface, with one key distinction: it has an additional argument prepended, representing an error condition. Next will skip error middleware if called without an error; conversely, if called with an error, it will skip normal middleware. Error middleware does something with the arguments passed, and then either returns a response, or calls $out, with or without the error.
사용 중단: since 1.3.0; will be removed with 2.0.0. Please see https://docs.zendframework.com/zend-stratigility/migration/to-v2/ for more information on how to update your code for forwards compatibility.
파일 보기 프로젝트 열기: zendframework/zend-stratigility

공개 메소드들

메소드 설명
__invoke ( mixed $error, Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $out = null ) : null | Psr\Http\Message\ResponseInterface Process an incoming error, along with associated request and response.

메소드 상세

__invoke() 공개 메소드

Accepts an error, a server-side request, and a response instance, and does something with them; if further processing can be done, it can delegate to $out.
또한 보기: MiddlewareInterface
public __invoke ( mixed $error, Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $out = null ) : null | Psr\Http\Message\ResponseInterface
$error mixed
$request Psr\Http\Message\ServerRequestInterface
$response Psr\Http\Message\ResponseInterface
$out callable
리턴 null | Psr\Http\Message\ResponseInterface