W3cubDocs

/Symfony 4.1

ServiceReferenceGraphEdge

class ServiceReferenceGraphEdge

Represents an edge in your service graph.

Value is typically a reference.

Methods

__construct(ServiceReferenceGraphNode $sourceNode, ServiceReferenceGraphNode $destNode, $value = null, bool $lazy = false, bool $weak = false)
mixed getValue()

Returns the value of the edge.

ServiceReferenceGraphNode getSourceNode()

Returns the source node.

ServiceReferenceGraphNode getDestNode()

Returns the destination node.

bool isLazy()

Returns true if the edge is lazy, meaning it's a dependency not requiring direct instantiation.

bool isWeak()

Returns true if the edge is weak, meaning it shouldn't prevent removing the target service.

Details

__construct(ServiceReferenceGraphNode $sourceNode, ServiceReferenceGraphNode $destNode, $value = null, bool $lazy = false, bool $weak = false)

Parameters

ServiceReferenceGraphNode $sourceNode
ServiceReferenceGraphNode $destNode
$value
bool $lazy
bool $weak

mixed getValue()

Returns the value of the edge.

Return Value

mixed

ServiceReferenceGraphNode getSourceNode()

Returns the source node.

Return Value

ServiceReferenceGraphNode

ServiceReferenceGraphNode getDestNode()

Returns the destination node.

Return Value

ServiceReferenceGraphNode

bool isLazy()

Returns true if the edge is lazy, meaning it's a dependency not requiring direct instantiation.

Return Value

bool

bool isWeak()

Returns true if the edge is weak, meaning it shouldn't prevent removing the target service.

Return Value

bool