Removes abstract definitions from the ContainerBuilder
ContainerBuilder $container:
Overrides CompilerPassInterface::process
public function process(ContainerBuilder $container) {
$compiler = $container
->getCompiler();
$formatter = $compiler
->getLoggingFormatter();
foreach ($container
->getDefinitions() as $id => $definition) {
if ($definition
->isAbstract()) {
$container
->removeDefinition($id);
$compiler
->addLogMessage($formatter
->formatRemoveService($this, $id, 'abstract'));
}
}
}