From a7abcb0ff06b68bd9a001a6c53ffae01075b05a5 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Wed, 26 Dec 2012 18:49:00 +0400 Subject: [PATCH] fixed constructors chain in base Application --- framework/base/Application.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/base/Application.php b/framework/base/Application.php index badf2ce..db74813 100644 --- a/framework/base/Application.php +++ b/framework/base/Application.php @@ -52,7 +52,7 @@ use yii\base\Exception; * @property CCache $cache Returns the cache component. * @property CPhpMessageSource $coreMessages Returns the core message translations. * @property CDateFormatter $dateFormatter Returns the locale-dependent date formatter. - * @property CDbConnection $db Returns the database connection component. + * @property \yii\db\dao\Connection $db Returns the database connection component. * @property CErrorHandler $errorHandler Returns the error handler component. * @property string $extensionPath Returns the root directory that holds all third-party extensions. * @property string $id Returns the unique identifier for the application. @@ -130,7 +130,7 @@ class Application extends Module $this->setBasePath($basePath); $this->registerDefaultAliases(); $this->registerCoreComponents(); - parent::__construct($config); + parent::__construct($id, $this, $config); } /**