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

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

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/DependencyInjection/Dumper/GraphvizDumper.html