public function updateObject($path, array $object, $autosave = false)
    {
        if (! $this->has($path)) {
            $this->cache[$path] = Util::pathinfo($path);
        }

        $this->cache[$path] = array_merge($this->cache[$path], $object);

        if ($autosave) {
            $this->autosave();
        }

        $this->ensureParentDirectories($path);
    }
public function updateObject($path, array $object, $autosave = false)
    {
        if (! $this->has($path)) {
            $this->cache[$path] = Util::pathinfo($path);
        }

        $this->cache[$path] = array_merge($this->cache[$path], $object);

        if ($autosave) {
            $this->autosave();
        }

        $this->ensureParentDirectories($path);
    }
public function updateObject ( $ path , array $ object , $ autosave = false ) { if ( ! $ this -> has ( $ path ) ) { $ this -> cache [ $ path ] = Util :: pathinfo ( $ path ) ; } $ this -> cache [ $ path ] = array_merge ( $ this -> cache [ $ path ] , $ object ) ; if ( $ autosave ) { $ this -> autosave ( ) ; } $ this -> ensureParentDirectories ( $ path ) ; }
Update the metadata for an object.

@param string $path     object path
@param array  $object   object metadata
@param bool   $autosave whether to trigger the autosave routine
Update the metadata for an object .