private function XmlDumper::addParameters in Service Container 7
Same name and namespace in other branches
- 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Dumper/XmlDumper.php \Symfony\Component\DependencyInjection\Dumper\XmlDumper::addParameters()
Adds parameters.
Parameters
\DOMElement $parent:
1 call to XmlDumper::addParameters()
- XmlDumper::dump in modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Dumper/ XmlDumper.php - Dumps the service container as an XML string.
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Dumper/ XmlDumper.php, line 70
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);
}