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-faker": "*"
},
"scripts": {
"post-create-project-cmd": [
"yii\\composer\\Installer::setPermission",
"yii\\composer\\Installer::generateCookieValidationKey"
]
},
"config": {
"process-timeout": 1800
},
"scripts": {
"post-create-project-cmd": [
"yii\\composer\\Installer::postCreateProject"
]
},
"extra": {
"writable": [
"runtime",
"web/assets"
],
"executable": [
"yii"
],
"config": [
"config/web.php"
],
"yii\\composer\\Installer::postCreateProject": {
"setPermission": [
{
"runtime": "0777",
"web/assets": "0777",
"yii": "0755"
}
],
"generateCookieValidationKey": [
"config/web.php"
]
},
"asset-installer-paths": {
"npm-asset-library": "vendor/npm",
"bower-asset-library": "vendor/bower"

View File

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

View File

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