You can modify the container here before it is dumped to PHP code.
@api
ContainerBuilder $container:
Overrides CompilerPassInterface::process
public function process(ContainerBuilder $container) {
$this->container = $container;
foreach ($container
->getDefinitions() as $id => $definition) {
$this->sourceId = $id;
$this
->processDefinition($definition);
}
}