Explorar o código

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

Qiang Xue %!s(int64=12) %!d(string=hai) anos
pai
achega
52eea89f09
Modificáronse 2 ficheiros con 1 adicións e 2 borrados
  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';
 }