Removed Application::preload
in favor of Application::bootstrap
This commit is contained in:
parent
4f00e23565
commit
52eea89f09
@ -8,7 +8,6 @@ $db = require(__DIR__ . '/db.php');
|
|||||||
return [
|
return [
|
||||||
'id' => 'basic-console',
|
'id' => 'basic-console',
|
||||||
'basePath' => dirname(__DIR__),
|
'basePath' => dirname(__DIR__),
|
||||||
'preload' => ['log'],
|
|
||||||
'controllerNamespace' => 'app\commands',
|
'controllerNamespace' => 'app\commands',
|
||||||
'extensions' => require(__DIR__ . '/../vendor/yiisoft/extensions.php'),
|
'extensions' => require(__DIR__ . '/../vendor/yiisoft/extensions.php'),
|
||||||
'components' => [
|
'components' => [
|
||||||
|
@ -38,7 +38,7 @@ $config = [
|
|||||||
|
|
||||||
if (YII_ENV_DEV) {
|
if (YII_ENV_DEV) {
|
||||||
// configuration adjustments for 'dev' environment
|
// configuration adjustments for 'dev' environment
|
||||||
$config['preload'][] = 'debug';
|
$config['bootstrap'][] = 'debug';
|
||||||
$config['modules']['debug'] = 'yii\debug\Module';
|
$config['modules']['debug'] = 'yii\debug\Module';
|
||||||
$config['modules']['gii'] = 'yii\gii\Module';
|
$config['modules']['gii'] = 'yii\gii\Module';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user