Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
19 | public function process(ContainerBuilder $container) |
||
20 | { |
||
21 | $definition = $container->getDefinition('serializer.mapping.cache_warmer'); |
||
22 | $argument = $definition->getArgument(0); |
||
23 | /** @var Definition $argumentDefinition */ |
||
24 | foreach ($argument as $argumentDefinition) { |
||
25 | if (AnnotationLoader::class === $argumentDefinition->getClass()) { |
||
26 | $argument[] = new Reference(FakeSerializerLoader::class); |
||
27 | $definition->replaceArgument(0, $argument); |
||
28 | |||
29 | return; |
||
30 | } |
||
31 | } |
||
32 | } |
||
33 | } |
||
34 |