You are here

public function PassConfig::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/Compiler/PassConfig.php \Symfony\Component\DependencyInjection\Compiler\PassConfig::__construct()

Constructor.

File

vendor/symfony/dependency-injection/Compiler/PassConfig.php, line 41

Class

PassConfig
Compiler Pass Configuration.

Namespace

Symfony\Component\DependencyInjection\Compiler

Code

public function __construct() {
  $this->mergePass = new MergeExtensionConfigurationPass();
  $this->optimizationPasses = array(
    new ExtensionCompilerPass(),
    new ResolveDefinitionTemplatesPass(),
    new DecoratorServicePass(),
    new ResolveParameterPlaceHoldersPass(),
    new CheckDefinitionValidityPass(),
    new ResolveReferencesToAliasesPass(),
    new ResolveInvalidReferencesPass(),
    new AnalyzeServiceReferencesPass(true),
    new CheckCircularReferencesPass(),
    new CheckReferenceValidityPass(),
  );
  $this->removingPasses = array(
    new RemovePrivateAliasesPass(),
    new RemoveAbstractDefinitionsPass(),
    new ReplaceAliasByActualDefinitionPass(),
    new RepeatedPass(array(
      new AnalyzeServiceReferencesPass(),
      new InlineServiceDefinitionsPass(),
      new AnalyzeServiceReferencesPass(),
      new RemoveUnusedDefinitionsPass(),
    )),
    new CheckExceptionOnInvalidReferenceBehaviorPass(),
  );
}