PHP Class Flarum\Http\Middleware\HandleErrors

Inheritance: implements Zend\Stratigility\ErrorMiddlewareInterface
Afficher le fichier Open project: flarum/core

Protected Properties

Свойство Type Description
$debug boolean
$logger Psr\Log\LoggerInterface
$templateDir string

Méthodes publiques

Méthode Description
__construct ( string $templateDir, Psr\Log\LoggerInterface $logger, boolean $debug = false )
__invoke ( $error, Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $out = null )

Méthodes protégées

Méthode Description
getErrorPage ( string $status ) : string

Method Details

__construct() public méthode

public __construct ( string $templateDir, Psr\Log\LoggerInterface $logger, boolean $debug = false )
$templateDir string
$logger Psr\Log\LoggerInterface
$debug boolean

__invoke() public méthode

public __invoke ( $error, Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response, callable $out = null )
$request Psr\Http\Message\ServerRequestInterface
$response Psr\Http\Message\ResponseInterface
$out callable

getErrorPage() protected méthode

protected getErrorPage ( string $status ) : string
$status string
Résultat string

Property Details

$debug protected_oe property

protected bool $debug
Résultat boolean

$logger protected_oe property

protected LoggerInterface,Psr\Log $logger
Résultat Psr\Log\LoggerInterface

$templateDir protected_oe property

protected string $templateDir
Résultat string