private function XmlDumper::addServiceAlias 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::addServiceAlias()
Adds a service alias.
Parameters
string $alias:
Alias $id:
\DOMElement $parent:
1 call to XmlDumper::addServiceAlias()
- XmlDumper::addServices in modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Dumper/ XmlDumper.php - Adds services.
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ 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);
}