GraphvizDumper

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

Methods

__construct(ContainerBuilder $container) from Dumper
string dump(array $options = array())

Dumps the service container as a graphviz graph.

Details

__construct(ContainerBuilder $container)

Parameters

ContainerBuilder $container The service container to dump

string dump(array $options = array())

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
doc_Symfony
2016-10-28 06:20:00
Comments
Leave a Comment

Please login to continue.