public static function create($id, array $config)
    {
        static::$databaseConnections[$id] = static::createDatabaseConnection($config);

        if (static::$activeDatabaseConnection === null) {
            static::select($id);
        }
    }
public static function create($id, array $config)
    {
        static::$databaseConnections[$id] = static::createDatabaseConnection($config);

        if (static::$activeDatabaseConnection === null) {
            static::select($id);
        }
    }
public static function create ( $ id , array $ config ) { static :: $ databaseConnections [ $ id ] = static :: createDatabaseConnection ( $ config ) ; if ( static :: $ activeDatabaseConnection === null ) { static :: select ( $ id ) ; } }
Set a database connection.
@param string $id
@param array  $config
Set a database connection .