| Conditions | 4 |
| Paths | 4 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 44 | public function __invoke(ContainerInterface $container) |
||
| 45 | { |
||
| 46 | $config = $container->has('config') ? $container->get('config') : []; |
||
| 47 | |||
| 48 | if (isset($config['dash'][$this->configKey]) && is_array($config['dash'][$this->configKey])) { |
||
| 49 | return new $this->className($container, $config['dash'][$this->configKey]); |
||
| 50 | } |
||
| 51 | |||
| 52 | return new $this->className($container); |
||
| 53 | } |
||
| 54 | |||
| 65 |