foreach($container->getExtensions()as$name => $extension){ if(!$config = $container->getExtensionConfig($name)){ // this extension was not called
continue; } $resolvingBag = $container->getParameterBag(); if($resolvingBag instanceof EnvPlaceholderParameterBag && $extension instanceof Extension){ // create a dedicated bag so that we can track env vars per-extension
$resolvingBag = newMergeExtensionConfigurationParameterBag($resolvingBag); if($configAvailable){ BaseNode::setPlaceholderUniquePrefix($resolvingBag->getEnvPlaceholderUniquePrefix()); } } $config = $resolvingBag->resolveValue($config);
foreach($container->getExtensions()as$name => $extension){ if(!$config = $container->getExtensionConfig($name)){ // this extension was not called
continue; } $resolvingBag = $container->getParameterBag(); if($resolvingBag instanceof EnvPlaceholderParameterBag && $extension instanceof Extension){ // create a dedicated bag so that we can track env vars per-extension
$resolvingBag = newMergeExtensionConfigurationParameterBag($resolvingBag); if($configAvailable){ BaseNode::setPlaceholderUniquePrefix($resolvingBag->getEnvPlaceholderUniquePrefix()); } } $config = $resolvingBag->resolveValue($config);