| 1 | <?php |
||
| 14 | class ErrorHandler implements ErrorHandlerInterface |
||
| 15 | {
|
||
| 16 | public const TEMPLATE = 'server-error'; |
||
| 17 | |||
| 18 | protected $factory; |
||
| 19 | protected $renderer; |
||
| 20 | protected $debug; |
||
| 21 | protected $template; |
||
| 22 | |||
| 23 | 1 | public function __construct(ResponseFactoryInterface $factory, RendererInterface $renderer, bool $debug = false, string $template = self::TEMPLATE) |
|
| 30 | |||
| 31 | 1 | public function handleError(Throwable $e, ServerRequestInterface $req = null): ResponseInterface |
|
| 39 | } |