Documentation

ServiceReferenceGraph
in package

This is a directed graph of your services.

This information can be used by your compiler passes instead of collecting it themselves which improves performance quite a lot.

Tags
author

Johannes M. Schmitt schmittjoh@gmail.com

final

Table of Contents

$nodes  : array<string|int, ServiceReferenceGraphNode>
clear()  : mixed
Clears all nodes.
connect()  : mixed
Connects 2 nodes together in the Graph.
getNode()  : ServiceReferenceGraphNode
Gets a node by identifier.
getNodes()  : array<string|int, ServiceReferenceGraphNode>
Returns all nodes.
hasNode()  : bool
createNode()  : ServiceReferenceGraphNode

Properties

Methods

connect()

Connects 2 nodes together in the Graph.

public connect(string|null $sourceId, mixed $sourceValue, string|null $destId[, mixed $destValue = null ][, Reference|null $reference = null ][, bool $lazy = false ][, bool $weak = false ][, bool $byConstructor = false ]) : mixed
Parameters
$sourceId : string|null
$sourceValue : mixed
$destId : string|null
$destValue : mixed = null
$reference : Reference|null = null
$lazy : bool = false
$weak : bool = false
$byConstructor : bool = false
Return values
mixed

Search results