init() public method

Initializes the application component.
public init ( )
Esempio n. 1
0
 /**
  * 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;
 }
Esempio n. 2
0
 public function init()
 {
     parent::init();
 }
Esempio n. 3
0
 /**
  * Initializes the application component.
  */
 public function init()
 {
     parent::init();
     $this->cache = Instance::ensure($this->cache, Cache::className());
     $this->cache->keyPrefix = '';
 }