function ServiceReferenceGraph::createNode
1 call to ServiceReferenceGraph::createNode()
- ServiceReferenceGraph::connect in vendor/
symfony/ dependency-injection/ Compiler/ ServiceReferenceGraph.php - Connects 2 nodes together in the Graph.
File
-
vendor/
symfony/ dependency-injection/ Compiler/ ServiceReferenceGraph.php, line 91
Class
- ServiceReferenceGraph
- This is a directed graph of your services.
Namespace
Symfony\Component\DependencyInjection\CompilerCode
private function createNode(string $id, mixed $value) : ServiceReferenceGraphNode {
if (isset($this->nodes[$id]) && $this->nodes[$id]
->getValue() === $value) {
return $this->nodes[$id];
}
return $this->nodes[$id] = new ServiceReferenceGraphNode($id, $value);
}