protected function writeObject($path, $contents, Config $config)
    {
        $path = $this->applyPathPrefix($path);
        $metadata = [
            'name' => $path,
        ];

        $metadata += $this->getOptionsFromConfig($config);

        $uploadedObject = $this->bucket->upload($contents, $metadata);
        $uploadedObject->reload();

        return $this->convertObjectInfo($uploadedObject);
    }
protected function writeObject($path, $contents, Config $config)
    {
        $path = $this->applyPathPrefix($path);
        $metadata = [
            'name' => $path,
        ];

        $metadata += $this->getOptionsFromConfig($config);

        $uploadedObject = $this->bucket->upload($contents, $metadata);
        $uploadedObject->reload();

        return $this->convertObjectInfo($uploadedObject);
    }
protected function writeObject ( $ path , $ contents , Config $ config ) { $ path = $ this -> applyPathPrefix ( $ path ) ; $ metadata = [ 'name' => $ path , ] ; $ metadata += $ this -> getOptionsFromConfig ( $ config ) ; $ uploadedObject = $ this -> bucket -> upload ( $ contents , $ metadata ) ; $ uploadedObject -> reload ( ) ; return $ this -> convertObjectInfo ( $ uploadedObject ) ; }
Writes an object to the current

@param string          $path
@param string|resource $contents
@param Config          $config

@return array
Writes an object to the current