Creates a graph node.
Parameters
string $id:
string $value:
Return value
ServiceReferenceGraphNode
File
- drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Compiler/ServiceReferenceGraph.php, line 109
Class
- ServiceReferenceGraph
- This is a directed graph of your services.
Namespace
Symfony\Component\DependencyInjection\Compiler
Code
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);
}