From 8d6add638b0eb4b2ae306372b42453d8c9b7f4a0 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Mon, 3 Oct 2011 08:58:15 +0200 Subject: [PATCH] [DoctrineBridge] fixed directory reference when the directory cannot be created --- src/Symfony/Bridge/Doctrine/CacheWarmer/ProxyCacheWarmer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bridge/Doctrine/CacheWarmer/ProxyCacheWarmer.php b/src/Symfony/Bridge/Doctrine/CacheWarmer/ProxyCacheWarmer.php index 7130c0249a..2d45c37d0f 100644 --- a/src/Symfony/Bridge/Doctrine/CacheWarmer/ProxyCacheWarmer.php +++ b/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 if (!file_exists($proxyCacheDir = $em->getConfiguration()->getProxyDir())) { 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)) { throw new \RuntimeException(sprintf('The Doctrine Proxy directory "%s" is not writeable for the current system user.', $proxyCacheDir));