| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class ExceptionHandlerDependencyProvider extends AbstractProvider |
||
| 12 | { |
||
| 13 | public const EXCEPTION_HANDLER = 'exception.handler'; |
||
| 14 | |||
| 15 | 1 | public function handleDependencies(DependencyProviderInterface $dependencyProvider): void |
|
| 16 | { |
||
| 17 | $dependencyProvider[self::EXCEPTION_HANDLER] = function () { |
||
| 18 | 1 | return new HandlerCollection( |
|
| 19 | 1 | $this->getExceptionHandler() |
|
| 20 | ); |
||
| 21 | }; |
||
| 22 | 1 | } |
|
| 23 | |||
| 24 | /** |
||
| 25 | * @return \Xervice\ExceptionHandler\Business\Handler\ExceptionHandlerInterface[] |
||
| 26 | */ |
||
| 27 | 1 | public function getExceptionHandler(): array |
|
| 30 | } |
||
| 31 | } |
||
| 32 |