ServiceReferenceGraph
class ServiceReferenceGraph
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.
Methods
bool
hasNode(string $id)
No description
getNode(string $id)
Gets a node by identifier.
array
getNodes()
Returns all nodes.
clear()
Clears all nodes.
connect(string|null $sourceId, $sourceValue, string|null $destId, $destValue = null, $reference = null, bool $lazy = false, bool $weak = false, bool $byConstructor = false)
Connects 2 nodes together in the Graph.