/** * Initializes the application component. * This method overrides parent implementation by loading the authorization data * from PHP script. */ public function init() { parent::init(); $this->itemFile = Leaps::getAlias($this->itemFile); $this->assignmentFile = Leaps::getAlias($this->assignmentFile); $this->ruleFile = Leaps::getAlias($this->ruleFile); $this->load(); }
/** * Initializes the application component. * This method overrides the parent implementation by establishing the database connection. */ public function init() { parent::init(); $this->db = Instance::ensure($this->db, Connection::className()); if ($this->cache !== null) { $this->cache = Instance::ensure($this->cache, Cache::className()); } }