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