/**
* Checks the ContainerBuilder object for circular references.
*
* @return void
*/
public function process(ContainerBuilder
$container) { $graph =
$container->
getCompiler()->
getServiceReferenceGraph();
$this->checkedNodes =
[];
foreach ($graph->
getNodes() as $id =>
$node) { $this->currentPath =
[$id];
$this->
checkOutEdges($node->
getOutEdges());
} } /**
* Checks for circular references.
*
* @param ServiceReferenceGraphEdge[] $edges An array of Edges
*
* @throws ServiceCircularReferenceException when a circular reference is found
*/