You are here

public function ServiceReferenceGraph::hasNode in Service Container 7

Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Compiler/ServiceReferenceGraph.php \Symfony\Component\DependencyInjection\Compiler\ServiceReferenceGraph::hasNode()

Checks if the graph has a specific node.

Parameters

string $id Id to check:

Return value

bool

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Compiler/ServiceReferenceGraph.php, line 38

Class

ServiceReferenceGraph
This is a directed graph of your services.

Namespace

Symfony\Component\DependencyInjection\Compiler

Code

public function hasNode($id) {
  return isset($this->nodes[$id]);
}