| Conditions | 5 |
| Paths | 7 |
| Total Lines | 20 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function process(ContainerBuilder $container) |
||
| 16 | { |
||
| 17 | if (!$container->has(CommandBus::class)) { |
||
| 18 | return; |
||
| 19 | } |
||
| 20 | $definition = $container->findDefinition(CommandBus::class); |
||
| 21 | $taggedServices = $container->findTaggedServiceIds('app.command_handler'); |
||
| 22 | |||
| 23 | foreach ($taggedServices as $id => $tags) { |
||
| 24 | $definition->addMethodCall('addCommandHandler', [new Reference($id)]); |
||
| 25 | } |
||
| 26 | |||
| 27 | if (!$container->has(QueryBus::class)) { |
||
| 28 | return; |
||
| 29 | } |
||
| 30 | $definition = $container->findDefinition(QueryBus::class); |
||
| 31 | $taggedServices = $container->findTaggedServiceIds('app.query_handler'); |
||
| 32 | |||
| 33 | foreach ($taggedServices as $id => $tags) { |
||
| 34 | $definition->addMethodCall('addQueryHandler', [new Reference($id)]); |
||
| 35 | } |
||
| 38 |
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