public static function register($flags = null)
    {
        $protocol = static::PROTOCOL;

        if (static::isRegistered()) {
            return true;
        }
        if (null === $flags) {
            $flags = STREAM_IS_URL;
        }

        return stream_wrapper_register($protocol, static::class, $flags);
    }