src/GoogleStorageAdapter.php
protected function upload($path, $contents, Config $config)
    {
        $path = $this->applyPathPrefix($path);

        $options = $this->getOptionsFromConfig($config);
        $options['name'] = $path;

        $object = $this->bucket->upload($contents, $options);

        return $this->normaliseObject($object);
    }
protected function upload($path, $contents, Config $config)
    {
        $path = $this->applyPathPrefix($path);

        $options = $this->getOptionsFromConfig($config);
        $options['name'] = $path;

        $object = $this->bucket->upload($contents, $options);

        return $this->normaliseObject($object);
    }
protected function upload ( $ path , $ contents , Config $ config ) { $ path = $ this -> applyPathPrefix ( $ path ) ; $ options = $ this -> getOptionsFromConfig ( $ config ) ; $ options [ 'name' ] = $ path ; $ object = $ this -> bucket -> upload ( $ contents , $ options ) ; return $ this -> normaliseObject ( $ object ) ; }
Uploads a file to the Google Cloud Storage service.

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

@return array
Uploads a file to the Google Cloud Storage service .