mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-17 07:51:12 +08:00
fixed configs
This commit is contained in:
@ -1,10 +1,12 @@
|
||||
<?php
|
||||
return [
|
||||
'preload' => [
|
||||
'debug',
|
||||
],
|
||||
'modules' => [
|
||||
'debug' => 'yii\debug\Module',
|
||||
'gii' => 'yii\gii\Module',
|
||||
],
|
||||
];
|
||||
|
||||
$config = [];
|
||||
|
||||
if (YII_ENV_DEV) {
|
||||
// configuration adjustments for 'dev' environment
|
||||
$config['preload'][] = 'debug';
|
||||
$config['modules']['debug'] = 'yii\debug\Module';
|
||||
$config['modules']['gii'] = 'yii\gii\Module';
|
||||
}
|
||||
|
||||
return $config;
|
||||
|
@ -1,10 +1,12 @@
|
||||
<?php
|
||||
return [
|
||||
'preload' => [
|
||||
'debug',
|
||||
],
|
||||
'modules' => [
|
||||
'debug' => 'yii\debug\Module',
|
||||
'gii' => 'yii\gii\Module',
|
||||
],
|
||||
];
|
||||
|
||||
$config = [];
|
||||
|
||||
if (YII_ENV_DEV) {
|
||||
// configuration adjustments for 'dev' environment
|
||||
$config['preload'][] = 'debug';
|
||||
$config['modules']['debug'] = 'yii\debug\Module';
|
||||
$config['modules']['gii'] = 'yii\gii\Module';
|
||||
}
|
||||
|
||||
return $config;
|
||||
|
Reference in New Issue
Block a user