class GraphvizDumper extends Dumper

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

Properties

protected $container from Dumper

Methods

__construct(ContainerBuilder $container)

No description

from Dumper
string
dump(array $options = [])

Dumps the service container as a graphviz graph.

Details

in Dumper at line 25
__construct(ContainerBuilder $container)

Parameters

ContainerBuilder $container

at line 58
string dump(array $options = [])

Dumps the service container as a graphviz graph.

Available options:

  • graph: The default options for the whole graph
  • node: The default options for nodes
  • edge: The default options for edges
  • node.instance: The default options for services that are defined directly by object instances
  • node.definition: The default options for services that are defined via service definition instances
  • node.missing: The default options for missing services

Parameters

array $options An array of options

Return Value

string The representation of the service container