You are here

protected function CheckCircularReferencesPassTest::process in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/Tests/Compiler/CheckCircularReferencesPassTest.php \Symfony\Component\DependencyInjection\Tests\Compiler\CheckCircularReferencesPassTest::process()
7 calls to CheckCircularReferencesPassTest::process()
CheckCircularReferencesPassTest::testDeepCircularReference in vendor/symfony/dependency-injection/Tests/Compiler/CheckCircularReferencesPassTest.php
@expectedException \Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException
CheckCircularReferencesPassTest::testProcess in vendor/symfony/dependency-injection/Tests/Compiler/CheckCircularReferencesPassTest.php
@expectedException \Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException
CheckCircularReferencesPassTest::testProcessDetectsIndirectCircularReference in vendor/symfony/dependency-injection/Tests/Compiler/CheckCircularReferencesPassTest.php
@expectedException \Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException
CheckCircularReferencesPassTest::testProcessDetectsIndirectCircularReferenceWithFactory in vendor/symfony/dependency-injection/Tests/Compiler/CheckCircularReferencesPassTest.php
@expectedException \Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException
CheckCircularReferencesPassTest::testProcessIgnoresMethodCalls in vendor/symfony/dependency-injection/Tests/Compiler/CheckCircularReferencesPassTest.php

... See full list

File

vendor/symfony/dependency-injection/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);
}