Process the Container to replace aliases with service definitions.
ContainerBuilder $container:
Overrides CompilerPassInterface::process
public function process(ContainerBuilder $container) {
$this->compiler = $container
->getCompiler();
$this->formatter = $this->compiler
->getLoggingFormatter();
foreach ($container
->getAliases() as $id => $alias) {
$aliasId = (string) $alias;
$definition = $container
->getDefinition($aliasId);
if ($definition
->isPublic()) {
continue;
}
$definition
->setPublic(true);
$container
->setDefinition($id, $definition);
$container
->removeDefinition($aliasId);
$this
->updateReferences($container, $aliasId, $id);
// we have to restart the process due to concurrent modification of
// the container
$this
->process($container);
break;
}
}