You are here

protected function CheckCircularReferencesPassTest::process in Service Container 7.2

Same name and namespace in other branches
  1. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Compiler/CheckCircularReferencesPassTest.php \Symfony\Component\DependencyInjection\Tests\Compiler\CheckCircularReferencesPassTest::process()
7 calls to CheckCircularReferencesPassTest::process()
CheckCircularReferencesPassTest::testDeepCircularReference in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Compiler/CheckCircularReferencesPassTest.php
@expectedException \Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException
CheckCircularReferencesPassTest::testProcess in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Compiler/CheckCircularReferencesPassTest.php
@expectedException \Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException
CheckCircularReferencesPassTest::testProcessDetectsIndirectCircularReference in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Compiler/CheckCircularReferencesPassTest.php
@expectedException \Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException
CheckCircularReferencesPassTest::testProcessDetectsIndirectCircularReferenceWithFactory in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Compiler/CheckCircularReferencesPassTest.php
@expectedException \Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException
CheckCircularReferencesPassTest::testProcessIgnoresMethodCalls in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Compiler/CheckCircularReferencesPassTest.php

... See full list

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Compiler/CheckCircularReferencesPassTest.php, line 118

Class

CheckCircularReferencesPassTest

Namespace

Symfony\Component\DependencyInjection\Tests\Compiler

Code

protected function process(ContainerBuilder $container) {
  $compiler = new Compiler();
  $passConfig = $compiler
    ->getPassConfig();
  $passConfig
    ->setOptimizationPasses(array(
    new AnalyzeServiceReferencesPass(true),
    new CheckCircularReferencesPass(),
  ));
  $passConfig
    ->setRemovingPasses(array());
  $compiler
    ->compile($container);
}