src/GoogleDriveAdapter.php
protected function publish($path)
    {
        if (($file = $this->getFileObject($path))) {
            if ($this->getRawVisibility($path) === AdapterInterface::VISIBILITY_PUBLIC) {
                return true;
            }
            try {
                $permission = new Google_Service_Drive_Permission($this->publishPermission);
                if ($this->service->permissions->create($file->getId(), $permission)) {
                    return true;
                }
            } catch (Exception $e) {
                return false;
            }
        }

        return false;
    }
protected function publish($path)
    {
        if (($file = $this->getFileObject($path))) {
            if ($this->getRawVisibility($path) === AdapterInterface::VISIBILITY_PUBLIC) {
                return true;
            }
            try {
                $permission = new Google_Service_Drive_Permission($this->publishPermission);
                if ($this->service->permissions->create($file->getId(), $permission)) {
                    return true;
                }
            } catch (Exception $e) {
                return false;
            }
        }

        return false;
    }
protected function publish ( $ path ) { if ( ( $ file = $ this -> getFileObject ( $ path ) ) ) { if ( $ this -> getRawVisibility ( $ path ) === AdapterInterface :: VISIBILITY_PUBLIC ) { return true ; } try { $ permission = new Google_Service_Drive_Permission ( $ this -> publishPermission ) ; if ( $ this -> service -> permissions -> create ( $ file -> getId ( ) , $ permission ) ) { return true ; } } catch ( Exception $ e ) { return false ; } } return false ; }
Publish specified path item

@param string $path
itemId path

@return bool
Publish specified path item