8000 [FrameworkBundle] remove dead code in CachePoolClearerPass · symfony/symfony@553ac6e · GitHub
[go: up one dir, main page]

Skip to content

Commit 553ac6e

Browse files
[FrameworkBundle] remove dead code in CachePoolClearerPass
1 parent 4435144 commit 553ac6e

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/CachePoolClearerPass.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,5 @@ public function process(ContainerBuilder $container)
3838
}
3939
$clearer->replaceArgument(0, $pools);
4040
}
41-
42-
if (!$container->has('cache.annotations')) {
43-
return;
44-
}
45-
$factory = array(AbstractAdapter::class, 'createSystemCache');
46-
$annotationsPool = $container->findDefinition('cache.annotations');
47-
if ($factory !== $annotationsPool->getFactory() || 4 !== count($annotationsPool->getArguments())) {
48-
return;
49-
}
50-
if ($container->has('monolog.logger.cache')) {
51-
$annotationsPool->addArgument(new Reference('monolog.logger.cache'));
52-
} elseif ($container->has('cache.system')) {
53-
$systemPool = $container->findDefinition 5DCE ('cache.system');
54-
if ($factory === $systemPool->getFactory() && 5 <= count($systemArgs = $systemPool->getArguments())) {
55-
$annotationsPool->addArgument($systemArgs[4]);
56-
}
57-
}
5841
}
5942
}

0 commit comments

Comments
 (0)
0