private function YamlDumper::addServiceAlias in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/Dumper/YamlDumper.php \Symfony\Component\DependencyInjection\Dumper\YamlDumper::addServiceAlias()
Adds a service alias.
Parameters
string $alias:
Alias $id:
Return value
string
1 call to YamlDumper::addServiceAlias()
- YamlDumper::addServices in vendor/
symfony/ dependency-injection/ Dumper/ YamlDumper.php - Adds services.
File
- vendor/
symfony/ dependency-injection/ Dumper/ YamlDumper.php, line 162
Class
- YamlDumper
- YamlDumper dumps a service container as a YAML string.
Namespace
Symfony\Component\DependencyInjection\DumperCode
private function addServiceAlias($alias, $id) {
if ($id
->isPublic()) {
return sprintf(" %s: '@%s'\n", $alias, $id);
}
return sprintf(" %s:\n alias: %s\n public: false", $alias, $id);
}