Returns the ServiceReferenceGraph.
public getServiceReferenceGraph ( ) : Symfony\Component\DependencyInjection\Compiler\ServiceReferenceGraph | ||
Résultat | Symfony\Component\DependencyInjection\Compiler\ServiceReferenceGraph | The ServiceReferenceGraph instance |
protected function process(ContainerBuilder $container) { $pass = new RepeatedPass(array(new AnalyzeServiceReferencesPass())); $pass->setCompiler($compiler = new Compiler()); $pass->process($container); return $compiler->getServiceReferenceGraph(); }
public function setCompiler(Compiler $compiler) { $this->graph = $compiler->getServiceReferenceGraph(); }