Process the ContainerBuilder to replace DefinitionDecorator instances with their real Definition instances.
ContainerBuilder $container:
Overrides CompilerPassInterface::process
public function process(ContainerBuilder $container) {
$this->container = $container;
$this->compiler = $container
->getCompiler();
$this->formatter = $this->compiler
->getLoggingFormatter();
foreach (array_keys($container
->getDefinitions()) as $id) {
// yes, we are specifically fetching the definition from the
// container to ensure we are not operating on stale data
$definition = $container
->getDefinition($id);
if (!$definition instanceof DefinitionDecorator || $definition
->isAbstract()) {
continue;
}
$this
->resolveDefinition($id, $definition);
}
}