protected function CheckCircularReferencesPassTest::process

4 calls to CheckCircularReferencesPassTest::process()
CheckCircularReferencesPassTest::testProcess in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Compiler/CheckCircularReferencesPassTest.php
@expectedException \RuntimeException
CheckCircularReferencesPassTest::testProcessDetectsIndirectCircularReference in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Compiler/CheckCircularReferencesPassTest.php
@expectedException \RuntimeException
CheckCircularReferencesPassTest::testProcessIgnoresMethodCalls in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Compiler/CheckCircularReferencesPassTest.php
CheckCircularReferencesPassTest::testProcessWithAliases in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Compiler/CheckCircularReferencesPassTest.php
@expectedException \RuntimeException

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Compiler/CheckCircularReferencesPassTest.php, line 73

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);
}