protected static function compileDoctrineProxies(Bootstrap $bootstrap)
{
$cacheManager = $bootstrap->getEarlyInstance(CacheManager::class);
$objectConfigurationCache = $cacheManager->getCache('Flow_Object_Configuration');
$coreCache = $cacheManager->getCache('Flow_Core');
$systemLogger = $bootstrap->getEarlyInstance(SystemLoggerInterface::class);
$configurationManager = $bootstrap->getEarlyInstance(ConfigurationManager::class);
$settings = $configurationManager->getConfiguration(ConfigurationManager::CONFIGURATION_TYPE_SETTINGS, 'Neos.Flow');
if ($objectConfigurationCache->has('doctrineProxyCodeUpToDate') === false && $coreCache->has('doctrineSetupRunning') === false) {
$coreCache->set('doctrineSetupRunning', 'White Russian', [], 60);
$systemLogger->log('Compiling Doctrine proxies', LOG_DEBUG);
self::executeCommand('neos.flow:doctrine:compileproxies', $settings);
$coreCache->remove('doctrineSetupRunning');
$objectConfigurationCache->set('doctrineProxyCodeUpToDate', true);
}
}