private function XmlDumper::addMethodCalls 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::addMethodCalls()
Adds method calls.
Parameters
array $methodcalls:
\DOMElement $parent:
1 call to XmlDumper::addMethodCalls()
- XmlDumper::addService in modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Dumper/ XmlDumper.php - Adds a service.
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Dumper/ XmlDumper.php, line 92
Class
- XmlDumper
- XmlDumper dumps a service container as an XML string.
Namespace
Symfony\Component\DependencyInjection\DumperCode
private function addMethodCalls(array $methodcalls, \DOMElement $parent) {
foreach ($methodcalls as $methodcall) {
$call = $this->document
->createElement('call');
$call
->setAttribute('method', $methodcall[0]);
if (count($methodcall[1])) {
$this
->convertParameters($methodcall[1], 'argument', $call);
}
$parent
->appendChild($call);
}
}