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 | ||
|---|---|---|
public
|
hasNode(string $id): bool
|
# |
public
|
getNode(string $id): ServiceReferenceGraphNode
|
# |
public
|
getNodes(): ServiceReferenceGraphNode[]
|
# |
public
|
clear(): void
|
# |
public
|
connect(
?string $sourceId,
mixed $sourceValue,
?string $destId,
mixed $destValue = null,
Reference $reference = null,
bool $lazy = false,
bool $weak = false,
bool $byConstructor = false,
): void
|
# |
private
|
createNode(string $id, mixed $value): ServiceReferenceGraphNode
|
# |
| Properties | |||
|---|---|---|---|
private
|
ServiceReferenceGraphNode[]
|
$nodes = []
|
# |