8000 Correctly resolve any possible environment variables. · symfony/symfony@7871349 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7871349

Browse files
Correctly resolve any possible environment variables.
1 parent c9f2f72 commit 7871349

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ private function getNamespace($seed, $id)
106106
*/
107107
public static function getServiceProvider(ContainerBuilder $container, $name)
108108
{
109-
if (0 === strpos($name, 'redis://') || 0 === strpos($name, '%env')) {
109+
$container->resolveEnvPlaceholders($name, null, $usedEnvs);
110+
111+
if (0 === strpos($name, 'redis://') || $usedEnvs) {
110112
$dsn = $name;
111113

112114
if (!$container->hasDefinition($name = md5($dsn))) {

0 commit comments

Comments
 (0)
0