瀏覽代碼

Removed `Application::preload` in favor of `Application::bootstrap`

Qiang Xue 12 年之前
父節點
當前提交
52eea89f09
共有 2 個文件被更改,包括 1 次插入2 次删除
  1. 0 1
      config/console.php
  2. 1 1
      config/web.php

+ 0 - 1
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' => [

+ 1 - 1
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';
 }