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