/** * Initializes the application component. */ public function init() { parent::init(); if (!$this->cache instanceof HSCache) { throw new InvalidConfigException('Cache component for session must be instance of ' . HSCache::className()); } $this->cache = clone $this->cache; $this->cache->group = $this->group; }
public function init() { parent::init(); }
/** * Initializes the application component. */ public function init() { parent::init(); $this->cache = Instance::ensure($this->cache, Cache::className()); $this->cache->keyPrefix = ''; }