public function registerDbConnection()
    {
        if (!is_string($this->module->dbComponent) && !is_array($this->module->dbComponent)) {
            throw new InvalidConfigException('Invalid value for the dbComponent parameter.');
        }
        if (is_array($this->module->dbComponent)) {
            $this->module->set('podium_db', $this->module->dbComponent);
        }
    }
public function registerDbConnection()
    {
        if (!is_string($this->module->dbComponent) && !is_array($this->module->dbComponent)) {
            throw new InvalidConfigException('Invalid value for the dbComponent parameter.');
        }
        if (is_array($this->module->dbComponent)) {
            $this->module->set('podium_db', $this->module->dbComponent);
        }
    }
public function registerDbConnection ( ) { if ( ! is_string ( $ this -> module -> dbComponent ) && ! is_array ( $ this -> module -> dbComponent ) ) { throw new InvalidConfigException ( 'Invalid value for the dbComponent parameter.' ) ; } if ( is_array ( $ this -> module -> dbComponent ) ) { $ this -> module -> set ( 'podium_db' , $ this -> module -> dbComponent ) ; } }
Registers DB connection.
@throws InvalidConfigException
Registers DB connection .