Checks the ContainerBuilder object for circular references.
ContainerBuilder $container The ContainerBuilder instances:
Overrides CompilerPassInterface::process
public function process(ContainerBuilder $container) {
$graph = $container
->getCompiler()
->getServiceReferenceGraph();
foreach ($graph
->getNodes() as $id => $node) {
$this->currentId = $id;
$this->currentPath = array(
$id,
);
$this
->checkOutEdges($node
->getOutEdges());
}
}