Symfony\Component\DependencyInjection\Dumper\GraphvizDumper
GraphvizDumper dumps a service container as a graphviz file.
You can convert the generated dot file with the dot utility (http://www.graphviz.org/):
dot -Tpng container.dot > foo.png
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class GraphvizDumper
extends Dumper
{
- // Inherited members from Dumper
- protected $container;
- // methods
- public string dump()
- private string addNodes()
- private string addEdges()
- private array findEdges()
- private array findNodes()
- private void cloneContainer()
- private string startDot()
- private string endDot()
- private string addAttributes()
- private string addOptions()
- private string dotize()
- private array getAliases()
- // Inherited methods from Dumper
- public void __construct()
Hierarchy
Members
private
- $edges
- $nodes
- $options
protected
- $container
Methods
private
- addAttributes() — Adds attributes
- addEdges() — Returns all edges.
- addNodes() — Returns all nodes.
- addOptions() — Adds options
- cloneContainer()
- dotize() — Dotizes an identifier.
- endDot() — Returns the end dot.
- findEdges() — Finds all edges belonging to a specific service id.
- findNodes() — Finds all nodes.
- getAliases() — Compiles an array of aliases for a specified service id.
- startDot() — Returns the start dot.
public
- dump() — Dumps the service container as a graphviz graph.