Refactored app bootstrap logic.
This commit is contained in:
parent
5e2d934270
commit
abcc78cd8f
@ -8,6 +8,7 @@ $db = require(__DIR__ . '/db.php');
|
|||||||
return [
|
return [
|
||||||
'id' => 'basic-console',
|
'id' => 'basic-console',
|
||||||
'basePath' => dirname(__DIR__),
|
'basePath' => dirname(__DIR__),
|
||||||
|
'bootstrap' => ['log'],
|
||||||
'controllerNamespace' => 'app\commands',
|
'controllerNamespace' => 'app\commands',
|
||||||
'extensions' => require(__DIR__ . '/../vendor/yiisoft/extensions.php'),
|
'extensions' => require(__DIR__ . '/../vendor/yiisoft/extensions.php'),
|
||||||
'components' => [
|
'components' => [
|
||||||
|
@ -6,6 +6,7 @@ $db = require(__DIR__ . '/db.php');
|
|||||||
$config = [
|
$config = [
|
||||||
'id' => 'basic',
|
'id' => 'basic',
|
||||||
'basePath' => dirname(__DIR__),
|
'basePath' => dirname(__DIR__),
|
||||||
|
'bootstrap' => ['log'],
|
||||||
'extensions' => require(__DIR__ . '/../vendor/yiisoft/extensions.php'),
|
'extensions' => require(__DIR__ . '/../vendor/yiisoft/extensions.php'),
|
||||||
'components' => [
|
'components' => [
|
||||||
'cache' => [
|
'cache' => [
|
||||||
|
Loading…
Reference in New Issue
Block a user