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