Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
getWhoopsInstance ( Psr\Http\Message\ServerRequestInterface $request ) : Whoops\Run | Returns the whoops instance or create one. |
public __construct ( Whoops\Run $whoops = null ) | ||
$whoops | Whoops\Run |
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 | |
return | Psr\Http\Message\ResponseInterface |
public catchErrors ( boolean $catchErrors = true ) : self | ||
$catchErrors | boolean | |
return | self |