private function XmlDumper::addParameters in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/dependency-injection/Dumper/XmlDumper.php \Symfony\Component\DependencyInjection\Dumper\XmlDumper::addParameters()
Adds parameters.
Parameters
\DOMElement $parent:
1 call to XmlDumper::addParameters()
- XmlDumper::dump in vendor/
symfony/ dependency-injection/ Dumper/ XmlDumper.php - Dumps the service container as an XML string.
File
- vendor/
symfony/ dependency-injection/ Dumper/ XmlDumper.php, line 66
Class
- XmlDumper
- XmlDumper dumps a service container as an XML string.
Namespace
Symfony\Component\DependencyInjection\DumperCode
private function addParameters(\DOMElement $parent) {
$data = $this->container
->getParameterBag()
->all();
if (!$data) {
return;
}
if ($this->container
->isFrozen()) {
$data = $this
->escape($data);
}
$parameters = $this->document
->createElement('parameters');
$parent
->appendChild($parameters);
$this
->convertParameters($data, 'parameter', $parameters);
}