init() public method

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