Commit 3b01f48c by Qiang Xue

Fixes #4597: `yii\composer\Installer::setPermission()` supports setting…

Fixes #4597: `yii\composer\Installer::setPermission()` supports setting permission for both directories and files now (qiangxue)
parent 895bdbcd
...@@ -5,6 +5,7 @@ Yii Framework 2 composer extension Change Log ...@@ -5,6 +5,7 @@ Yii Framework 2 composer extension Change Log
-------------------------- --------------------------
- Bug #3438: Fixed support for non-lowercase package names (cebe) - Bug #3438: Fixed support for non-lowercase package names (cebe)
- Enh #4597: `yii\composer\Installer::setPermission()` supports setting permission for both directories and files now (qiangxue)
2.0.0-beta April 13, 2014 2.0.0-beta April 13, 2014
------------------------- -------------------------
......
...@@ -237,11 +237,11 @@ EOF ...@@ -237,11 +237,11 @@ EOF
foreach ((array) $options[self::EXTRA_WRITABLE] as $path) { foreach ((array) $options[self::EXTRA_WRITABLE] as $path) {
echo "Setting writable: $path ..."; echo "Setting writable: $path ...";
if (is_dir($path)) { if (is_dir($path) || is_file($path)) {
chmod($path, 0777); chmod($path, 0777);
echo "done\n"; echo "done\n";
} else { } else {
echo "The directory was not found: " . getcwd() . DIRECTORY_SEPARATOR . $path; echo "The directory or file was not found: " . getcwd() . DIRECTORY_SEPARATOR . $path;
return; return;
} }
...@@ -249,11 +249,11 @@ EOF ...@@ -249,11 +249,11 @@ EOF
foreach ((array) $options[self::EXTRA_EXECUTABLE] as $path) { foreach ((array) $options[self::EXTRA_EXECUTABLE] as $path) {
echo "Setting executable: $path ..."; echo "Setting executable: $path ...";
if (is_file($path)) { if (is_dir($path) || is_file($path)) {
chmod($path, 0755); chmod($path, 0755);
echo "done\n"; echo "done\n";
} else { } else {
echo "\n\tThe file was not found: " . getcwd() . DIRECTORY_SEPARATOR . $path . "\n"; echo "\n\tThe directory or file was not found: " . getcwd() . DIRECTORY_SEPARATOR . $path . "\n";
return; return;
} }
......
...@@ -173,6 +173,7 @@ Yii Framework 2 Change Log ...@@ -173,6 +173,7 @@ Yii Framework 2 Change Log
- Enh #4566: Added client validation support for image validator (Skysplit, qiangxue) - Enh #4566: Added client validation support for image validator (Skysplit, qiangxue)
- Enh #4581: Added ability to disable url encoding in `UrlRule` (tadaszelvys) - Enh #4581: Added ability to disable url encoding in `UrlRule` (tadaszelvys)
- Enh #4602: Added $key param in ActionColumn buttons Closure call (disem) - Enh #4602: Added $key param in ActionColumn buttons Closure call (disem)
- Enh #4597: `yii\composer\Installer::setPermission()` supports setting permission for both directories and files now (qiangxue)
- Enh: Added support for using sub-queries when building a DB query with `IN` condition (qiangxue) - Enh: Added support for using sub-queries when building a DB query with `IN` condition (qiangxue)
- Enh: Supported adding a new response formatter without the need to reconfigure existing formatters (qiangxue) - Enh: Supported adding a new response formatter without the need to reconfigure existing formatters (qiangxue)
- Enh: Added `yii\web\UrlManager::addRules()` to simplify adding new URL rules (qiangxue) - Enh: Added `yii\web\UrlManager::addRules()` to simplify adding new URL rules (qiangxue)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment