From abcc78cd8f8b4f8fd5b84c1a78b94242c57be415 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Thu, 10 Apr 2014 15:05:01 -0400 Subject: [PATCH] Refactored app bootstrap logic. --- config/console.php | 1 + config/web.php | 1 + 2 files changed, 2 insertions(+) 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' => [