private function YamlDumper::dumpCallable in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/dependency-injection/Dumper/YamlDumper.php \Symfony\Component\DependencyInjection\Dumper\YamlDumper::dumpCallable()
Dumps callable to YAML format.
Parameters
callable $callable:
Return value
callable
1 call to YamlDumper::dumpCallable()
- YamlDumper::addService in vendor/
symfony/ dependency-injection/ Dumper/ YamlDumper.php - Adds a service.
File
- vendor/
symfony/ dependency-injection/ Dumper/ YamlDumper.php, line 221
Class
- YamlDumper
- YamlDumper dumps a service container as a YAML string.
Namespace
Symfony\Component\DependencyInjection\DumperCode
private function dumpCallable($callable) {
if (is_array($callable)) {
if ($callable[0] instanceof Reference) {
$callable = array(
$this
->getServiceCall((string) $callable[0], $callable[0]),
$callable[1],
);
}
else {
$callable = array(
$callable[0],
$callable[1],
);
}
}
return $callable;
}