浏览代码

unified mkdir mode

Fabien Potencier 15 年之前
父节点
当前提交
85d99057fb

+ 2 - 2
src/Symfony/Components/HttpKernel/Cache/Store.php

@@ -40,7 +40,7 @@ class Store
     {
         $this->root = $root;
         if (!is_dir($this->root)) {
-            mkdir($this->root, 0755, true);
+            mkdir($this->root, 0777, true);
         }
         $this->keyCache = new \SplObjectStorage();
         $this->locks = array();
@@ -313,7 +313,7 @@ class Store
     {
         $path = $this->getPath($key);
         if (!is_dir(dirname($path))) {
-            mkdir(dirname($path), 0755, true);
+            mkdir(dirname($path), 0777, true);
         }
 
         $tmpFile = tempnam(dirname($path), basename($path));

+ 1 - 1
src/Symfony/Framework/FoundationBundle/Command/AssetsInstallCommand.php

@@ -60,7 +60,7 @@ class AssetsInstallCommand extends Command
                 $targetDir = $input->getArgument('target').'/bundles/'.preg_replace('/bundle$/', '', strtolower($bundle->getName()));
 
                 $filesystem->remove($targetDir);
-                mkdir($targetDir, 0755, true);
+                mkdir($targetDir, 0777, true);
                 $filesystem->mirror($originDir, $targetDir);
             }
         }