public static function isSupported(string $driver): bool
    {
        if ($driver === self::DRIVER_MONGO_DB) {
            return \extension_loaded('mongodb');
        }

        if ($driver === self::DRIVER_MONGO) {
            return \extension_loaded('mongo');
        }

        return false;
    }
public static function isSupported(string $driver): bool
    {
        if ($driver === self::DRIVER_MONGO_DB) {
            return \extension_loaded('mongodb');
        }

        if ($driver === self::DRIVER_MONGO) {
            return \extension_loaded('mongo');
        }

        return false;
    }
public static function isSupported ( string $ driver ) : bool { if ( $ driver === self :: DRIVER_MONGO_DB ) { return \ extension_loaded ( 'mongodb' ) ; } if ( $ driver === self :: DRIVER_MONGO ) { return \ extension_loaded ( 'mongo' ) ; } return false ; }
Is this driver supported.
@param string $driver
@return bool
Is this driver supported .