$pass_config =
$container->
getCompilerPassConfig();
$pass_config->
setRemovingPasses(array_filter($pass_config->
getRemovingPasses(),
function D
$pass) { // Remove InlineServiceDefinitionsPass, RemoveUnusedDefinitionsPass,
// AnalyzeServiceReferencesPass and ReplaceAliasByActualDefinitionPass as
// these are not necessary during installation.
// @see \Symfony\Component\DependencyInjection\Compiler\PassConfig
return !
($pass instanceof InlineServiceDefinitionsPass ||
$pass instanceof RemoveUnusedDefinitionsPass ||
$pass instanceof AnalyzeServiceReferencesPass ||
$pass instanceof ReplaceAliasByActualDefinitionPass
);
}));
$pass_config->
setAfterRemovingPasses(array_filter($pass_config->
getAfterRemovingPasses(),
function D
$pass) { // Remove ResolveHotPathPass as Drupal's container dumper does not support
// it.
// @see \Symfony\Component\DependencyInjection\Compiler\PassConfig
return !
($pass instanceof ResolveHotPathPass
);
}));
}}