Skip to content

Commit db05791

Browse files
bug #32365 [DI] fix processing of regular parameter bags by MergeExtensionConfigurationPass (nicolas-grekas)
This PR was merged into the 3.4 branch. Discussion ---------- [DI] fix processing of regular parameter bags by MergeExtensionConfigurationPass | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Spotted in and needed by #32294 Commits ------- b06d000 [DI] fix processing of regular parameter bags by MergeExtensionConfigurationPass
2 parents 1dc3b4a + b06d000 commit db05791

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy