From b8ffee655930a23cd616a2a4e781850efca534fa Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Wed, 18 Sep 2013 22:38:53 +0200 Subject: [PATCH] moved CacheSession::init() parent call after init of cache component session autostart would fail otherwise. fixes #887 --- framework/yii/web/CacheSession.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/yii/web/CacheSession.php b/framework/yii/web/CacheSession.php index bb387e1..b4ce2ae 100644 --- a/framework/yii/web/CacheSession.php +++ b/framework/yii/web/CacheSession.php @@ -42,13 +42,13 @@ class CacheSession extends Session */ public function init() { - parent::init(); if (is_string($this->cache)) { $this->cache = Yii::$app->getComponent($this->cache); } if (!$this->cache instanceof Cache) { throw new InvalidConfigException('CacheSession::cache must refer to the application component ID of a cache object.'); } + parent::init(); } /**