public static function getFilename(StreamInterface $stream)
    {
        self::register();

        $uri = 'spiral://' . spl_object_hash($stream);
        self::$uris[$uri] = $stream;

        return $uri;
    }
public static function getFilename(StreamInterface $stream)
    {
        self::register();

        $uri = 'spiral://' . spl_object_hash($stream);
        self::$uris[$uri] = $stream;

        return $uri;
    }
public static function getFilename ( StreamInterface $ stream ) { self :: register ( ) ; $ uri = 'spiral://' . spl_object_hash ( $ stream ) ; self :: $ uris [ $ uri ] = $ stream ; return $ uri ; }
Register StreamInterface and get unique url for it.

@param StreamInterface $stream
@return string
Register StreamInterface and get unique url for it .