Explorar o código

[DoctrineBridge] fixed directory reference when the directory cannot be created

Fabien Potencier %!s(int64=13) %!d(string=hai) anos
pai
achega
8d6add638b

+ 1 - 1
src/Symfony/Bridge/Doctrine/CacheWarmer/ProxyCacheWarmer.php

@@ -52,7 +52,7 @@ class ProxyCacheWarmer implements CacheWarmerInterface
             // we need the directory no matter the proxy cache generation strategy
             // we need the directory no matter the proxy cache generation strategy
             if (!file_exists($proxyCacheDir = $em->getConfiguration()->getProxyDir())) {
             if (!file_exists($proxyCacheDir = $em->getConfiguration()->getProxyDir())) {
                 if (false === @mkdir($proxyCacheDir, 0777, true)) {
                 if (false === @mkdir($proxyCacheDir, 0777, true)) {
-                    throw new \RuntimeException(sprintf('Unable to create the Doctrine Proxy directory "%s".', dirname($proxyCacheDir)));
+                    throw new \RuntimeException(sprintf('Unable to create the Doctrine Proxy directory "%s".', $proxyCacheDir));
                 }
                 }
             } elseif (!is_writable($proxyCacheDir)) {
             } elseif (!is_writable($proxyCacheDir)) {
                 throw new \RuntimeException(sprintf('The Doctrine Proxy directory "%s" is not writeable for the current system user.', $proxyCacheDir));
                 throw new \RuntimeException(sprintf('The Doctrine Proxy directory "%s" is not writeable for the current system user.', $proxyCacheDir));