diff --git a/config/console.php b/config/console.php index 88c43c5..462f35b 100644 --- a/config/console.php +++ b/config/console.php @@ -8,6 +8,7 @@ $db = require(__DIR__ . '/db.php'); return [ 'id' => 'basic-console', 'basePath' => dirname(__DIR__), + 'bootstrap' => ['log'], 'controllerNamespace' => 'app\commands', 'extensions' => require(__DIR__ . '/../vendor/yiisoft/extensions.php'), 'components' => [ diff --git a/config/web.php b/config/web.php index 845a521..fb9c679 100644 --- a/config/web.php +++ b/config/web.php @@ -6,6 +6,7 @@ $db = require(__DIR__ . '/db.php'); $config = [ 'id' => 'basic', 'basePath' => dirname(__DIR__), + 'bootstrap' => ['log'], 'extensions' => require(__DIR__ . '/../vendor/yiisoft/extensions.php'), 'components' => [ 'cache' => [