src/Database/Db.php
protected function createPdo(array $config)
    {
        $dsn        = $this->getHostDsn($config);
        $userName   = (isset($config['username']) ? $config['username'] : null);
        $password   = (isset($config['password']) ? $config['password'] : null);
        $options    = $this->getPdoOptions($config);

        return new PDO($dsn, $userName, $password, $options);
    }
protected function createPdo(array $config)
    {
        $dsn        = $this->getHostDsn($config);
        $userName   = (isset($config['username']) ? $config['username'] : null);
        $password   = (isset($config['password']) ? $config['password'] : null);
        $options    = $this->getPdoOptions($config);

        return new PDO($dsn, $userName, $password, $options);
    }
protected function createPdo ( array $ config ) { $ dsn = $ this -> getHostDsn ( $ config ) ; $ userName = ( isset ( $ config [ 'username' ] ) ? $ config [ 'username' ] : null ) ; $ password = ( isset ( $ config [ 'password' ] ) ? $ config [ 'password' ] : null ) ; $ options = $ this -> getPdoOptions ( $ config ) ; return new PDO ( $ dsn , $ userName , $ password , $ options ) ; }
create a pdo instance

@param array $config
@return PDO
@throws \PDOException
create a pdo instance