Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | 2 | public function process(ContainerBuilder $container) |
|
28 | { |
||
29 | 2 | foreach ($container->findTaggedServiceIds('lug.factory') as $service => $attributes) { |
|
30 | 2 | $factory = $container->getDefinition($service); |
|
31 | |||
32 | 2 | if (is_a($factory->getClass(), TranslatableFactory::class, true)) { |
|
33 | 1 | $factory->addArgument(new Reference('lug.translation.context.locale')); |
|
34 | 1 | } |
|
35 | 2 | } |
|
36 | 2 | } |
|
37 | } |
||
38 |