public function CheckCircularReferencesPass::process in Service Container 7.2
Same name and namespace in other branches
- 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Compiler/CheckCircularReferencesPass.php \Symfony\Component\DependencyInjection\Compiler\CheckCircularReferencesPass::process()
Checks the ContainerBuilder object for circular references.
Parameters
ContainerBuilder $container The ContainerBuilder instances:
Overrides CompilerPassInterface::process
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Compiler/ CheckCircularReferencesPass.php, line 37
Class
- CheckCircularReferencesPass
- Checks your services for circular references.
Namespace
Symfony\Component\DependencyInjection\CompilerCode
public function process(ContainerBuilder $container) {
$graph = $container
->getCompiler()
->getServiceReferenceGraph();
$this->checkedNodes = array();
foreach ($graph
->getNodes() as $id => $node) {
$this->currentPath = array(
$id,
);
$this
->checkOutEdges($node
->getOutEdges());
}
}