function EnvPlaceholderParameterBag::mergeEnvPlaceholders
Merges the env placeholders of another EnvPlaceholderParameterBag.
1 call to EnvPlaceholderParameterBag::mergeEnvPlaceholders()
- MergeExtensionConfigurationParameterBag::__construct in vendor/
symfony/ dependency-injection/ Compiler/ MergeExtensionConfigurationPass.php
File
-
vendor/
symfony/ dependency-injection/ ParameterBag/ EnvPlaceholderParameterBag.php, line 98
Class
- EnvPlaceholderParameterBag
- @author Nicolas Grekas <p@tchwork.com>
Namespace
Symfony\Component\DependencyInjection\ParameterBagCode
public function mergeEnvPlaceholders(self $bag) : void {
if ($newPlaceholders = $bag->getEnvPlaceholders()) {
$this->envPlaceholders += $newPlaceholders;
foreach ($newPlaceholders as $env => $placeholders) {
$this->envPlaceholders[$env] += $placeholders;
}
}
if ($newUnusedPlaceholders = $bag->getUnusedEnvPlaceholders()) {
$this->unusedEnvPlaceholders += $newUnusedPlaceholders;
foreach ($newUnusedPlaceholders as $env => $placeholders) {
$this->unusedEnvPlaceholders[$env] += $placeholders;
}
}
}