PHP 클래스 Psr7Middlewares\Middleware\Whoops

파일 보기 프로젝트 열기: oscarotero/psr7-middlewares

공개 메소드들

메소드 설명
__construct ( Whoops\Run $whoops = null ) Set the whoops instance.
__invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface Execute the middleware.
catchErrors ( boolean $catchErrors = true ) : self Whether catch errors or not.

비공개 메소드들

메소드 설명
getWhoopsInstance ( Psr\Http\Message\ServerRequestInterface $request ) : Whoops\Run Returns the whoops instance or create one.

메소드 상세

__construct() 공개 메소드

Set the whoops instance.
public __construct ( Whoops\Run $whoops = null )
$whoops Whoops\Run

__invoke() 공개 메소드

Execute the middleware.
public __invoke ( Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $next ) : Psr\Http\Message\ResponseInterface
$request Psr\Http\Message\ServerRequestInterface
$response Psr\Http\Message\ResponseInterface
$next callable
리턴 Psr\Http\Message\ResponseInterface

catchErrors() 공개 메소드

Whether catch errors or not.
public catchErrors ( boolean $catchErrors = true ) : self
$catchErrors boolean
리턴 self