Conditions | 3 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
18 | public function __invoke(ContainerInterface $container): ContainerInterface |
||
19 | 1 | { |
|
20 | $config = $container->has('config') ? $container->get('config') : []; |
||
21 | 1 | $transports = $config['messenger']['transports'] ?? []; |
|
22 | $factories = []; |
||
23 | |||
24 | foreach ($transports as $name => $_) { |
||
25 | 1 | $factories[$name] = static function () use ($name, $container): RetryStrategyInterface { |
|
26 | return (new RetryStrategyFactory($name))($container); |
||
|
|||
27 | }; |
||
28 | } |
||
29 | |||
30 | return new ServiceManager(['factories' => $factories]); |
||
31 | } |
||
33 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths