| 1 | <?php |
||
| 20 | class ExceptionResponseProcessor implements ExceptionResponseProcessorInterface |
||
| 21 | { |
||
| 22 | /** @var CustomAppExceptionResponseProcessorInterface[]|iterable */ |
||
| 23 | private $errorResponseProcessors; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param iterable|CustomAppExceptionResponseProcessorInterface[] $errorResponseProcessors |
||
| 27 | */ |
||
| 28 | public function __construct(iterable $errorResponseProcessors) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | public function processResponseForException(CustomAppExceptionInterface $exception): array |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param CustomAppExceptionInterface $exception |
||
| 49 | * |
||
| 50 | * @return CustomAppExceptionResponseProcessorInterface|null |
||
| 51 | */ |
||
| 52 | private function findAppropriateErrorResponseProcessorForException(CustomAppExceptionInterface $exception): ?CustomAppExceptionResponseProcessorInterface |
||
| 63 | } |
||
| 64 |