| 1 | <?php |
||
| 18 | final class ErrorHandler implements ErrorInterface |
||
| 19 | { |
||
| 20 | /** @var ?ResourceObject */ |
||
| 21 | private $errorPage; |
||
| 22 | |||
| 23 | /** @var TransferInterface */ |
||
| 24 | private $responder; |
||
| 25 | |||
| 26 | /** @var ErrorLogger */ |
||
| 27 | private $logger; |
||
| 28 | |||
| 29 | /** @var ErrorPageFactoryInterface */ |
||
| 30 | private $factory; |
||
| 31 | |||
| 32 | public function __construct(TransferInterface $responder, ErrorLogger $logger, ErrorPageFactoryInterface $factory) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritdoc} |
||
| 41 | */ |
||
| 42 | public function handle(Exception $e, Request $request) // phpcs:ignore SlevomatCodingStandard.Exceptions.ReferenceThrowableOnly.ReferencedGeneralException |
||
| 49 | |||
| 50 | /** |
||
| 51 | * {@inheritdoc} |
||
| 52 | */ |
||
| 53 | public function transfer(): void |
||
| 57 | } |
||
| 58 |