protected function getNewMySqlConnection(array $config, string $connection = null)
    {
        if ($connection && isset($config[$connection])) {
            $config = array_merge($config, $config[$connection]);
        }

        return ConnectorFactory::make(FW::version())->connect($config);
    }
protected function getNewMySqlConnection(array $config, string $connection = null)
    {
        if ($connection && isset($config[$connection])) {
            $config = array_merge($config, $config[$connection]);
        }

        return ConnectorFactory::make(FW::version())->connect($config);
    }
protected function getNewMySqlConnection ( array $ config , string $ connection = null ) { if ( $ connection && isset ( $ config [ $ connection ] ) ) { $ config = array_merge ( $ config , $ config [ $ connection ] ) ; } return ConnectorFactory :: make ( FW :: version ( ) ) -> connect ( $ config ) ; }
Get a new mysql connection.

@param array $config
@param string $connection

@return \PDO
Get a new mysql connection .