function ParameterBag::resolve
Overrides ParameterBagInterface::resolve
2 calls to ParameterBag::resolve()
- EnvPlaceholderParameterBag::resolve in vendor/
symfony/ dependency-injection/ ParameterBag/ EnvPlaceholderParameterBag.php - Replaces parameter placeholders (%name%) by their values for all parameters.
- EnvPlaceholderParameterBag::resolve in vendor/
symfony/ dependency-injection/ ParameterBag/ EnvPlaceholderParameterBag.php - Replaces parameter placeholders (%name%) by their values for all parameters.
1 method overrides ParameterBag::resolve()
- EnvPlaceholderParameterBag::resolve in vendor/
symfony/ dependency-injection/ ParameterBag/ EnvPlaceholderParameterBag.php - Replaces parameter placeholders (%name%) by their values for all parameters.
File
-
vendor/
symfony/ dependency-injection/ ParameterBag/ ParameterBag.php, line 151
Class
- ParameterBag
- Holds parameters.
Namespace
Symfony\Component\DependencyInjection\ParameterBagCode
public function resolve() : void {
if ($this->resolved) {
return;
}
$parameters = [];
foreach ($this->parameters as $key => $value) {
try {
$value = $this->resolveValue($value);
$parameters[$key] = $this->unescapeValue($value);
} catch (ParameterNotFoundException $e) {
$e->setSourceKey($key);
throw $e;
}
}
$this->parameters = $parameters;
$this->resolved = true;
}