private function XmlDumper::addMethodCalls 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::addMethodCalls()
Adds method calls.
Parameters
array $methodcalls:
\DOMElement $parent:
1 call to XmlDumper::addMethodCalls()
- XmlDumper::addService in vendor/
symfony/ dependency-injection/ Dumper/ XmlDumper.php - Adds a service.
File
- vendor/
symfony/ dependency-injection/ Dumper/ XmlDumper.php, line 88
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);
}
}