Browse Source

fixed redis session init() call

fixes #1319
tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
752261e9ec
  1. 2
      extensions/redis/Session.php

2
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();
}
/**

Loading…
Cancel
Save