Skip to content

Commit e379dbb

Browse files
committed
do not overwrite variable value
1 parent 8855082 commit e379dbb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Component/Cache/DependencyInjection/CachePoolPass.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function process(ContainerBuilder $container)
5454
}
5555
$seed .= '.'.$container->getParameter('kernel.container_class');
5656

57-
$pools = [];
57+
$allPools = [];
5858
$clearers = [];
5959
$attributes = [
6060
'provider',
@@ -119,15 +119,15 @@ public function process(ContainerBuilder $container)
119119
$clearers[$clearer][$name] = new Reference($id, $container::IGNORE_ON_UNINITIALIZED_REFERENCE);
120120
}
121121

122-
$pools[$name] = new Reference($id, $container::IGNORE_ON_UNINITIALIZED_REFERENCE);
122+
$allPools[$name] = new Reference($id, $container::IGNORE_ON_UNINITIALIZED_REFERENCE);
123123
}
124124

125125
$notAliasedCacheClearerId = $this->cacheClearerId;
126126
while ($container->hasAlias($this->cacheClearerId)) {
127127
$this->cacheClearerId = (string) $container->getAlias($this->cacheClearerId);
128128
}
129129
if ($container->hasDefinition($this->cacheClearerId)) {
130-
$clearers[$notAliasedCacheClearerId] = $pools;
130+
$clearers[$notAliasedCacheClearerId] = $allPools;
131131
}
132132

133133
foreach ($clearers as $id => $pools) {
@@ -145,7 +145,7 @@ public function process(ContainerBuilder $container)
145145
}
146146

147147
if ($container->hasDefinition('console.command.cache_pool_list')) {
148-
$container->getDefinition('console.command.cache_pool_list')->replaceArgument(0, array_keys($pools));
148+
$container->getDefinition('console.command.cache_pool_list')->replaceArgument(0, array_keys($allPools));
149149
}
150150
}
151151

0 commit comments

Comments
 (0)