Merge branch 'master' into new-asset

Conflicts:
	apps/basic/composer.json
	composer.json
This commit is contained in:
Qiang Xue 2014-09-16 20:03:53 -04:00
commit 1b58a71ef9
3 changed files with 22 additions and 22 deletions

View File

@ -25,26 +25,27 @@
"yiisoft/yii2-gii": "*", "yiisoft/yii2-gii": "*",
"yiisoft/yii2-faker": "*" "yiisoft/yii2-faker": "*"
}, },
"scripts": {
"post-create-project-cmd": [
"yii\\composer\\Installer::setPermission",
"yii\\composer\\Installer::generateCookieValidationKey"
]
},
"config": { "config": {
"process-timeout": 1800 "process-timeout": 1800
}, },
"scripts": {
"post-create-project-cmd": [
"yii\\composer\\Installer::postCreateProject"
]
},
"extra": { "extra": {
"writable": [ "yii\\composer\\Installer::postCreateProject": {
"runtime", "setPermission": [
"web/assets" {
"runtime": "0777",
"web/assets": "0777",
"yii": "0755"
}
], ],
"executable": [ "generateCookieValidationKey": [
"yii"
],
"config": [
"config/web.php" "config/web.php"
], ]
},
"asset-installer-paths": { "asset-installer-paths": {
"npm-asset-library": "vendor/npm", "npm-asset-library": "vendor/npm",
"bower-asset-library": "vendor/bower" "bower-asset-library": "vendor/bower"

View File

@ -8,8 +8,11 @@ $db = require(__DIR__ . '/db.php');
return [ return [
'id' => 'basic-console', 'id' => 'basic-console',
'basePath' => dirname(__DIR__), 'basePath' => dirname(__DIR__),
'bootstrap' => ['log'], 'bootstrap' => ['log', 'gii'],
'controllerNamespace' => 'app\commands', 'controllerNamespace' => 'app\commands',
'modules' => [
'gii' => 'yii\gii\Module',
],
'components' => [ 'components' => [
'cache' => [ 'cache' => [
'class' => 'yii\caching\FileCache', 'class' => 'yii\caching\FileCache',

View File

@ -9,7 +9,7 @@ $config = [
'components' => [ 'components' => [
'request' => [ 'request' => [
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
'cookieValidationKey' => 'thisIsAKey', 'cookieValidationKey' => '',
], ],
'cache' => [ 'cache' => [
'class' => 'yii\caching\FileCache', 'class' => 'yii\caching\FileCache',
@ -38,10 +38,6 @@ $config = [
], ],
], ],
'db' => require(__DIR__ . '/db.php'), 'db' => require(__DIR__ . '/db.php'),
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
],
], ],
'params' => $params, 'params' => $params,
]; ];