unified mkdir mode

This commit is contained in:
Fabien Potencier 2010-06-24 13:12:19 +02:00
parent ca3dc31057
commit 85d99057fb
2 changed files with 3 additions and 3 deletions

View File

@ -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));

View File

@ -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);
}
}