public function ParameterBag::resolve in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/ParameterBag/ParameterBag.php \Symfony\Component\DependencyInjection\ParameterBag\ParameterBag::resolve()
Replaces parameter placeholders (%name%) by their values for all parameters.
Overrides ParameterBagInterface::resolve
File
- vendor/
symfony/ dependency-injection/ ParameterBag/ ParameterBag.php, line 136
Class
- ParameterBag
- Holds parameters.
Namespace
Symfony\Component\DependencyInjection\ParameterBagCode
public function resolve() {
if ($this->resolved) {
return;
}
$parameters = array();
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;
}