From 52eea89f09e2a7d770c32588d8ee13620af04b5e Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Wed, 9 Apr 2014 10:47:10 -0400 Subject: [PATCH] Removed `Application::preload` in favor of `Application::bootstrap` --- config/console.php | 1 - config/web.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/config/console.php b/config/console.php index f254858..88c43c5 100644 --- a/config/console.php +++ b/config/console.php @@ -8,7 +8,6 @@ $db = require(__DIR__ . '/db.php'); return [ 'id' => 'basic-console', 'basePath' => dirname(__DIR__), - 'preload' => ['log'], 'controllerNamespace' => 'app\commands', 'extensions' => require(__DIR__ . '/../vendor/yiisoft/extensions.php'), 'components' => [ diff --git a/config/web.php b/config/web.php index 462c135..845a521 100644 --- a/config/web.php +++ b/config/web.php @@ -38,7 +38,7 @@ $config = [ if (YII_ENV_DEV) { // configuration adjustments for 'dev' environment - $config['preload'][] = 'debug'; + $config['bootstrap'][] = 'debug'; $config['modules']['debug'] = 'yii\debug\Module'; $config['modules']['gii'] = 'yii\gii\Module'; }