Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
52 | private function findAppropriateErrorResponseProcessorForException(CustomAppExceptionInterface $exception): ?CustomAppExceptionResponseProcessorInterface |
||
53 | { |
||
54 | foreach ($this->errorResponseProcessors as $errorResponseProcessor) { |
||
55 | /** @var CustomAppExceptionResponseProcessorInterface $errorResponseProcessor */ |
||
56 | if ($errorResponseProcessor->supports($exception)) { |
||
57 | return $errorResponseProcessor; |
||
58 | } |
||
59 | } |
||
60 | |||
61 | return null; |
||
62 | } |
||
63 | } |
||
64 |