private function GraphvizDumper::addEdges in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/Dumper/GraphvizDumper.php \Symfony\Component\DependencyInjection\Dumper\GraphvizDumper::addEdges()
Returns all edges.
Return value
string A string representation of all edges
1 call to GraphvizDumper::addEdges()
- GraphvizDumper::dump in vendor/
symfony/ dependency-injection/ Dumper/ GraphvizDumper.php - Dumps the service container as a graphviz graph.
File
- vendor/
symfony/ dependency-injection/ Dumper/ GraphvizDumper.php, line 111
Class
- GraphvizDumper
- GraphvizDumper dumps a service container as a graphviz file.
Namespace
Symfony\Component\DependencyInjection\DumperCode
private function addEdges() {
$code = '';
foreach ($this->edges as $id => $edges) {
foreach ($edges as $edge) {
$code .= sprintf(" node_%s -> node_%s [label=\"%s\" style=\"%s\"];\n", $this
->dotize($id), $this
->dotize($edge['to']), $edge['name'], $edge['required'] ? 'filled' : 'dashed');
}
}
return $code;
}