src/AbstractStream.php
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);
    }
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);
    }
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 ) ; }
Register the current class as wrapper for class-specified protocol.

@param int $flags Optional; null by default means "STREAM_IS_URL". The
specification of protocol type - URL protocol or local

@return bool Returns true on success, false otherwise
Register the current class as wrapper for class - specified protocol .