Commit 752261e9 by Carsten Brandt

fixed redis session init() call

fixes #1319
parent e2ff98ab
......@@ -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();
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment