Commit b8ffee65 by Carsten Brandt

moved CacheSession::init() parent call after init of cache component

session autostart would fail otherwise. fixes #887
parent c2a3aa3d
......@@ -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();
}
/**
......
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