Removed yii\debug\Module::enabled.

This commit is contained in:
Qiang Xue 2013-08-10 07:56:40 -04:00
parent 5072e526be
commit 3d073a1f11

View File

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