| Conditions | 4 |
| Paths | 8 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | 1 | public function __invoke(ContainerInterface $container) |
|
| 23 | { |
||
| 24 | 1 | $config = $container->has('config') ? $container->get('config') : []; |
|
| 25 | 1 | $errorHandlerConfig = isset($config['error_handler']) ? $config['error_handler'] : []; |
|
| 26 | 1 | $plugins = isset($errorHandlerConfig['plugins']) ? $errorHandlerConfig['plugins'] : []; |
|
| 27 | 1 | return new ErrorHandlerManager($container, $plugins); |
|
| 28 | } |
||
| 29 | } |
||
| 30 |