GraphvizDumper dumps a service container as a graphviz file.

You can convert the generated dot file with the dot utility (

dot -Tpng > foo.png

public Symfony\Component\DependencyInjection\Dumper\Dumper::__construct(Symfony\Component\DependencyInjection\ContainerBuilder $container)
public dump(array $options = []) : string

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
protected Symfony\Component\DependencyInjection\ContainerBuilder Symfony\Component\DependencyInjection\Dumper\Dumper::$container
private array $edges
private array $nodes
private array $options = ['graph' => ['ratio' => 'compress'], 'node' => ['fontsize' => '11', 'fontname' => 'Arial', 'shape' => 'record'], 'edge' => ['fontsize' => '9', 'fontname' => 'Arial', 'color' => 'grey', 'arrowhead' => 'open', 'arrowsize' => '0.5'], 'node.instance' => ['fillcolor' => '#9999ff', 'style' => 'filled'], 'node.definition' => ['fillcolor' => '#eeeeee'], 'node.missing' => ['fillcolor' => '#ff9999', 'style' => 'filled']]
private addAttributes(array $attributes) : string
private addEdges() : string
private addNodes() : string
private addOptions(array $options) : string
private cloneContainer() : Symfony\Component\DependencyInjection\ContainerBuilder
private dotize(string $id) : string
private endDot() : string
private findEdges(string $id, array $arguments, bool $required, string $name, bool $lazy = false) : array

Finds all edges belonging to a specific service id.

private findNodes() : array
private getAliases(string $id) : array
private startDot() : string
© 2024 Bruce Wells
Search Namespaces \ Classes