private function ServiceReferenceGraph::createNode

Creates a graph node.

Parameters

string $id:

string $value:

Return value

ServiceReferenceGraphNode

1 call to ServiceReferenceGraph::createNode()
ServiceReferenceGraph::connect in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Compiler/ServiceReferenceGraph.php
Connects 2 nodes together in the Graph.

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);
}