Copied!

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.

CloneableInstantiable
Methods
public clear() : void
 

Clears all nodes.

public connect(?string $sourceId, ?mixed $sourceValue, ?string $destId, ?mixed $destValue = NULL, ?Symfony\Component\DependencyInjection\Reference $reference = NULL, bool $lazy = false, bool $weak = false, bool $byConstructor = false) : void
 

Connects 2 nodes together in the Graph.

public getNode(string $id) : Symfony\Component\DependencyInjection\Compiler\ServiceReferenceGraphNode
 

Gets a node by identifier.

  • throws \InvalidArgumentException if no node matches the supplied identifier
public getNodes() : array
 

Returns all nodes.

  • return \ServiceReferenceGraphNode[]
public hasNode(string $id) : bool
Properties
private array $nodes = []
 
  • var \ServiceReferenceGraphNode[]
Methods
private createNode(string $id, ?mixed $value) : Symfony\Component\DependencyInjection\Compiler\ServiceReferenceGraphNode
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration