Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
24 | 4 | public function __invoke(ContainerInterface $container): HandlersLocatorInterface |
|
25 | { |
||
26 | 4 | /** @var array<string, mixed> $config */ |
|
27 | $config = $container->has('config') ? $container->get('config') : []; |
||
28 | 4 | /** @var string[][]|array<string, array<string|callable>> $handlerDescriptors */ |
|
29 | $handlerDescriptors = $config['messenger']['buses'][$this->busName]['handlers'] ?? []; |
||
30 | |||
31 | return new ContainerHandlersLocator($container, $handlerDescriptors); |
||
32 | } |
||
34 |