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 | ): MessageProcessor { |
||
18 | 1 | $contextConfig = ConfigProvider::getContextConfig($contextName, $container->get(ConfigProvider::CONFIG_KEY)); |
|
19 | 1 | $actionContainer = $container->get($contextConfig[ConfigProvider::CONTAINER_KEY]); |
|
20 | |||
21 | 1 | return new MessageProcessor($actionContainer, $container->get(EventDispatcherInterface::class)); |
|
22 | } |
||
24 |