Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
27 | 1 | public function process(ContainerBuilder $container) |
|
28 | { |
||
29 | 1 | $loaderDefinition = new Definition(PublishableLoader::class); |
|
30 | 1 | $loaderDefinition->setPublic(false); |
|
31 | 1 | $loaderDefinition->setArguments([new Reference('annotations.reader')]); |
|
32 | |||
33 | 1 | $definition = $container->getDefinition('serializer.mapping.chain_loader'); |
|
34 | 1 | $definition->replaceArgument(0, array_merge($definition->getArgument(0), [$loaderDefinition])); |
|
35 | 1 | } |
|
37 |