From 73ede01ebd2d4459d62de54923b1016ece7cbb1d Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Tue, 21 Jul 2015 00:57:16 +0300 Subject: [PATCH] More novice friendly config for gii/debug --- config/web.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/config/web.php b/config/web.php index 1632a5a..fd03861 100644 --- a/config/web.php +++ b/config/web.php @@ -45,10 +45,14 @@ $config = [ if (YII_ENV_DEV) { // configuration adjustments for 'dev' environment $config['bootstrap'][] = 'debug'; - $config['modules']['debug'] = 'yii\debug\Module'; + $config['modules']['debug'] = [ + 'class' => 'yii\debug\Module', + ]; $config['bootstrap'][] = 'gii'; - $config['modules']['gii'] = 'yii\gii\Module'; + $config['modules']['gii'] = [ + 'class' => 'yii\gii\Module', + ]; } return $config;