Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b06d000

Browse files
[DI] fix processing of regular parameter bags by MergeExtensionConfigurationPass
1 parent 081c601 commit b06d000

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/DependencyInjection/Compiler/MergeExtensionConfigurationPass.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ public function resolveEnvPlaceholders($value, $format = null, array &$usedEnvs
186186
$bag = $this->getParameterBag();
187187
$value = $bag->resolveValue($value);
188188

189+
if (!$bag instanceof EnvPlaceholderParameterBag) {
190+
return parent::resolveEnvPlaceholders($value, $format, $usedEnvs);
191+
}
192+
189193
foreach ($bag->getEnvPlaceholders() as $env => $placeholders) {
190194
if (false === strpos($env, ':')) {
191195
continue;

0 commit comments

Comments
 (0)