PHP Class Zend\Stratigility\Middleware\ErrorResponseGenerator

Exibir arquivo Open project: zendframework/zend-stratigility

Public Methods

Method Description
__construct ( boolean $isDevelopmentMode = false )
__invoke ( Throwabl\Throwable | Exceptio\Exception $e, Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response ) : Psr\Http\Message\ResponseInterface Create/update the response representing the error.

Method Details

__construct() public method

public __construct ( boolean $isDevelopmentMode = false )
$isDevelopmentMode boolean

__invoke() public method

Create/update the response representing the error.
public __invoke ( Throwabl\Throwable | Exceptio\Exception $e, Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response ) : Psr\Http\Message\ResponseInterface
$e Throwabl\Throwable | Exceptio\Exception
$request Psr\Http\Message\ServerRequestInterface
$response Psr\Http\Message\ResponseInterface
return Psr\Http\Message\ResponseInterface