class HandleErrors implements ErrorMiddlewareInterface

Properties

protected string $templateDir
protected bool $debug

Methods

__construct(string $templateDir, bool $debug = false)

No description

__invoke($error, ServerRequestInterface $request, ResponseInterface $response, callable $out = null)

<p>{@inheritdoc}</p>

string
getErrorPage(string $status)

No description

Details

__construct(string $templateDir, bool $debug = false)

Parameters

string $templateDir
bool $debug

__invoke($error, ServerRequestInterface $request, ResponseInterface $response, callable $out = null)

<p>{@inheritdoc}</p>

Parameters

$error
ServerRequestInterface $request
ResponseInterface $response
callable $out

protected string getErrorPage(string $status)

Parameters

string $status

Return Value

string