private function XmlDumper::addServiceAlias 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::addServiceAlias()
Adds a service alias.
Parameters
string $alias:
Alias $id:
\DOMElement $parent:
1 call to XmlDumper::addServiceAlias()
- XmlDumper::addServices in vendor/
symfony/ dependency-injection/ Dumper/ XmlDumper.php - Adds services.
File
- vendor/
symfony/ dependency-injection/ Dumper/ XmlDumper.php, line 219
Class
- XmlDumper
- XmlDumper dumps a service container as an XML string.
Namespace
Symfony\Component\DependencyInjection\DumperCode
private function addServiceAlias($alias, Alias $id, \DOMElement $parent) {
$service = $this->document
->createElement('service');
$service
->setAttribute('id', $alias);
$service
->setAttribute('alias', $id);
if (!$id
->isPublic()) {
$service
->setAttribute('public', 'false');
}
$parent
->appendChild($service);
}