new RemoveUnusedDefinitionsPass(),
new AnalyzeServiceReferencesPass(),
new CheckExceptionOnInvalidReferenceBehaviorPass(),
new InlineServiceDefinitionsPass(new AnalyzeServiceReferencesPass()),
new AnalyzeServiceReferencesPass(),
new DefinitionErrorExceptionPass(),
]];
$this->afterRemovingPasses =
[ 0 =>
[ new ResolveHotPathPass(),
new ResolveNoPreloadPass(),
new AliasDeprecatedPublicServicesPass(),
],
// Let build parameters be available as late as possible
-2048 =>
[new RemoveBuildParametersPass()],
];
} /**
* Returns all passes in order to be processed.
*
* @return CompilerPassInterface[]
*/