Conditions | 5 |
Paths | 5 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
21 | public function process(ContainerBuilder $container) |
||
22 | { |
||
23 | if ($container->hasDefinition('annotations.filesystem_cache')) { |
||
24 | foreach ($container->getDefinitions() as $def) { |
||
25 | if ($def->getClass() === FilesystemCache::class) { |
||
26 | $args = $def->getArguments(); |
||
27 | if (!isset($args[1])) { |
||
28 | $args[1] = (new \ReflectionClass(FilesystemCache::class))->getConstructor()->getParameters()[1]->getDefaultValue(); |
||
29 | } |
||
30 | $args[2] = umask(); |
||
31 | $def->setArguments($args); |
||
32 | } |
||
36 | } |