private function YamlDumper::addParameters in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/Dumper/YamlDumper.php \Symfony\Component\DependencyInjection\Dumper\YamlDumper::addParameters()
Adds parameters.
Return value
string
1 call to YamlDumper::addParameters()
- YamlDumper::dump in vendor/
symfony/ dependency-injection/ Dumper/ YamlDumper.php - Dumps the service container as an YAML string.
File
- vendor/
symfony/ dependency-injection/ Dumper/ YamlDumper.php, line 203
Class
- YamlDumper
- YamlDumper dumps a service container as a YAML string.
Namespace
Symfony\Component\DependencyInjection\DumperCode
private function addParameters() {
if (!$this->container
->getParameterBag()
->all()) {
return '';
}
$parameters = $this
->prepareParameters($this->container
->getParameterBag()
->all(), $this->container
->isFrozen());
return $this->dumper
->dump(array(
'parameters' => $parameters,
), 2);
}