protected function getExtraConnection($conn)
    {
        $dbConfigs = $this->containers['config']->get('mysql');
        $dbConfig = $dbConfigs[$conn];
        $this->extraConfigs[$conn]['_db'] = $dbConfig['dbname'] ?? '';
        $this->extraConfigs[$conn]['_host'] = $dbConfig['host'] ?? '';
        $this->extraConfigs[$conn]['_username'] = $dbConfig['username'] ?? '';
        $this->extraConfigs[$conn]['_password'] = $dbConfig['password'] ?? '';
        $this->extraConfigs[$conn]['_options'] = $dbConfig['options'] ?? '';
        $this->getDsn($conn);
        $this->getConnection($conn);
    }
protected function getExtraConnection($conn)
    {
        $dbConfigs = $this->containers['config']->get('mysql');
        $dbConfig = $dbConfigs[$conn];
        $this->extraConfigs[$conn]['_db'] = $dbConfig['dbname'] ?? '';
        $this->extraConfigs[$conn]['_host'] = $dbConfig['host'] ?? '';
        $this->extraConfigs[$conn]['_username'] = $dbConfig['username'] ?? '';
        $this->extraConfigs[$conn]['_password'] = $dbConfig['password'] ?? '';
        $this->extraConfigs[$conn]['_options'] = $dbConfig['options'] ?? '';
        $this->getDsn($conn);
        $this->getConnection($conn);
    }
protected function getExtraConnection ( $ conn ) { $ dbConfigs = $ this -> containers [ 'config' ] -> get ( 'mysql' ) ; $ dbConfig = $ dbConfigs [ $ conn ] ; $ this -> extraConfigs [ $ conn ] [ '_db' ] = $ dbConfig [ 'dbname' ] ?? '' ; $ this -> extraConfigs [ $ conn ] [ '_host' ] = $ dbConfig [ 'host' ] ?? '' ; $ this -> extraConfigs [ $ conn ] [ '_username' ] = $ dbConfig [ 'username' ] ?? '' ; $ this -> extraConfigs [ $ conn ] [ '_password' ] = $ dbConfig [ 'password' ] ?? '' ; $ this -> extraConfigs [ $ conn ] [ '_options' ] = $ dbConfig [ 'options' ] ?? '' ; $ this -> getDsn ( $ conn ) ; $ this -> getConnection ( $ conn ) ; }
Establish extra mysql connection

@param $conn
Establish extra mysql connection