Removed yii\debug\Module::enabled.

This commit is contained in:
Qiang Xue
2013-08-10 07:56:40 -04:00
parent 1f63bf0040
commit 9193e4777c
2 changed files with 17 additions and 13 deletions

View File

@@ -1,15 +1,8 @@
<?php
return array(
$config = array(
'id' => 'bootstrap',
'basePath' => dirname(__DIR__),
'preload' => array('debug'),
'modules' => array(
'debug' => array(
'class' => 'yii\debug\Module',
'enabled' => YII_ENV_DEV,
),
),
'components' => array(
'cache' => array(
'class' => 'yii\caching\FileCache',
@@ -32,3 +25,11 @@ return array(
),
'params' => require(__DIR__ . '/params.php'),
);
if (YII_ENV_DEV) {
$config['preload'][] = 'debug';
$config['modules']['debug'] = 'yii\debug\Module';
$config['modules']['gii'] = 'yii\gii\Module';
}
return $config;