private function ServiceReferenceGraph::createNode in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/Compiler/ServiceReferenceGraph.php \Symfony\Component\DependencyInjection\Compiler\ServiceReferenceGraph::createNode()
Creates a graph node.
Parameters
string $id:
string $value:
Return value
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 106
Class
- ServiceReferenceGraph
- This is a directed graph of your services.
Namespace
Symfony\Component\DependencyInjection\CompilerCode
private function createNode($id, $value) {
if (isset($this->nodes[$id]) && $this->nodes[$id]
->getValue() === $value) {
return $this->nodes[$id];
}
return $this->nodes[$id] = new ServiceReferenceGraphNode($id, $value);
}