Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | 1 | public function __invoke( |
|
16 | ContainerInterface $container, |
||
17 | string $contextName = ConfigProvider::DEFAULT_CONTEXT |
||
18 | ): StartQueueConsumer { |
||
19 | 1 | $contextConfig = ConfigProvider::getContextConfig($contextName, $container->get(ConfigProvider::CONFIG_KEY)); |
|
20 | |||
21 | 1 | return new StartQueueConsumer( |
|
22 | 1 | $container->get(QueueConsumerInterface::class), |
|
23 | 1 | $container->get(Processor::class), |
|
24 | 1 | $container->get($contextConfig[ConfigProvider::CONTEXT_SERVICE_KEY]) |
|
25 | ); |
||
28 |