PHP Class Zend\Stratigility\Middleware\ErrorResponseGenerator

Afficher le fichier Open project: zendframework/zend-stratigility

Méthodes publiques

Méthode 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 méthode

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

__invoke() public méthode

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
Résultat Psr\Http\Message\ResponseInterface