| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | 1 | public function __invoke( |
|
| 15 | ContainerInterface $container, |
||
| 16 | string $contextName = ConfigProvider::DEFAULT_CONTEXT |
||
| 17 | ): Producer { |
||
| 18 | 1 | $contextConfig = ConfigProvider::getContextConfig($contextName, $container->get(ConfigProvider::CONFIG_KEY)); |
|
| 19 | 1 | $context = $container->get($contextConfig[ConfigProvider::CONTEXT_SERVICE_KEY]); |
|
| 20 | |||
| 21 | 1 | return new JobProducer($context); |
|
| 22 | } |
||
| 24 |