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.
2 parents e0250f6 + 49a19ea commit 6ac9129Copy full SHA for 6ac9129
CacheWarmer/ProxyCacheWarmer.php
@@ -52,7 +52,7 @@ public function warmUp(string $cacheDir)
52
foreach ($this->registry->getManagers() as $em) {
53
// we need the directory no matter the proxy cache generation strategy
54
if (!is_dir($proxyCacheDir = $em->getConfiguration()->getProxyDir())) {
55
- if (false === @mkdir($proxyCacheDir, 0777, true)) {
+ if (false === @mkdir($proxyCacheDir, 0777, true) && !is_dir($proxyCacheDir)) {
56
throw new \RuntimeException(sprintf('Unable to create the Doctrine Proxy directory "%s".', $proxyCacheDir));
57
}
58
} elseif (!is_writable($proxyCacheDir)) {
0 commit comments