We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d5a797 commit 49a19eaCopy full SHA for 49a19ea
CacheWarmer/ProxyCacheWarmer.php
@@ -49,7 +49,7 @@ public function warmUp($cacheDir)
49
foreach ($this->registry->getManagers() as $em) {
50
// we need the directory no matter the proxy cache generation strategy
51
if (!is_dir($proxyCacheDir = $em->getConfiguration()->getProxyDir())) {
52
- if (false === @mkdir($proxyCacheDir, 0777, true)) {
+ if (false === @mkdir($proxyCacheDir, 0777, true) && !is_dir($proxyCacheDir)) {
53
throw new \RuntimeException(sprintf('Unable to create the Doctrine Proxy directory "%s".', $proxyCacheDir));
54
}
55
} elseif (!is_writable($proxyCacheDir)) {
0 commit comments