From 752261e9ece0b2e6d449e7a2c7cef5759b3c2fd3 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Mon, 25 Nov 2013 20:45:33 +0100 Subject: [PATCH] fixed redis session init() call fixes #1319 --- extensions/redis/Session.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/redis/Session.php b/extensions/redis/Session.php index 09a0dd4..8f7a7e5 100644 --- a/extensions/redis/Session.php +++ b/extensions/redis/Session.php @@ -81,7 +81,6 @@ class Session extends \yii\web\Session */ public function init() { - parent::init(); if (is_string($this->redis)) { $this->redis = Yii::$app->getComponent($this->redis); } else if (is_array($this->redis)) { @@ -98,6 +97,7 @@ class Session extends \yii\web\Session } elseif (!ctype_alnum($this->keyPrefix)) { throw new InvalidConfigException(get_class($this) . '::keyPrefix should only contain alphanumeric characters.'); } + parent::init(); } /**