return false;
} /**
* @return string[] A list of files to preload on PHP 7.4+
*/
public function warmUp(string
$cacheDir): array
{ $files =
[];
foreach ($this->registry->
getManagers() as $em) { // we need the directory no matter the proxy cache generation strategy
if (!
is_dir($proxyCacheDir =
$em->
getConfiguration()->
getProxyDir())) { if (false === @
mkdir($proxyCacheDir, 0777, true
) && !
is_dir($proxyCacheDir)) { throw new \
RuntimeException(sprintf('Unable to create the Doctrine Proxy directory "%s".',
$proxyCacheDir));
} } elseif (!
is_writable($proxyCacheDir)) { throw new \
RuntimeException(sprintf('The Doctrine Proxy directory "%s" is not writeable for the current system user.',
$proxyCacheDir));
} // if proxies are autogenerated we don't need to generate them in the cache warmer
if ($em->
getConfiguration()->
getAutoGenerateProxyClasses()) { continue;
}