Documentation

GraphvizDumper extends Dumper
in package

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

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

$container  : mixed
$edges  : mixed
$nodes  : mixed
$options  : mixed
__construct()  : mixed
dump()  : string
Dumps the service container as a graphviz graph.
addAttributes()  : string
addEdges()  : string
addNodes()  : string
addOptions()  : string
cloneContainer()  : ContainerBuilder
dotize()  : string
endDot()  : string
findEdges()  : array<string|int, mixed>
Finds all edges belonging to a specific service id.
findNodes()  : array<string|int, mixed>
getAliases()  : array<string|int, mixed>
startDot()  : string

Properties

$container

protected mixed $container

$options

private mixed $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']]

Methods

dump()

Dumps the service container as a graphviz graph.

public dump([array<string|int, mixed> $options = [] ]) : string

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
$options : array<string|int, mixed> = []
Return values
string

addAttributes()

private addAttributes(array<string|int, mixed> $attributes) : string
Parameters
$attributes : array<string|int, mixed>
Return values
string

addOptions()

private addOptions(array<string|int, mixed> $options) : string
Parameters
$options : array<string|int, mixed>
Return values
string

dotize()

private dotize(string $id) : string
Parameters
$id : string
Return values
string

findEdges()

Finds all edges belonging to a specific service id.

private findEdges(string $id, array<string|int, mixed> $arguments, bool $required, string $name[, bool $lazy = false ]) : array<string|int, mixed>
Parameters
$id : string
$arguments : array<string|int, mixed>
$required : bool
$name : string
$lazy : bool = false
Return values
array<string|int, mixed>

findNodes()

private findNodes() : array<string|int, mixed>
Return values
array<string|int, mixed>

getAliases()

private getAliases(string $id) : array<string|int, mixed>
Parameters
$id : string
Return values
array<string|int, mixed>

startDot()

private startDot() : string
Return values
string

Search results