Comments (7)
Thanks, we definitely should be returning a resource and not the StreamInterface, which we bubble down from the the Google Cloud lib - https://github.com/GoogleCloudPlatform/google-cloud-php/blob/master/src/Storage/StorageObject.php#L608
Whilst we've deviated from the interface, I'm not sure I'd like to consider it a breaking change. In the unit test, we incorrectly test for a StreamInterface, but in the actual class, we inheritdoc and say we return a resource (even though we don't).
I'm open to thoughts on this.
I'll patch it when I have a sec.
It looks like we should be calling \GuzzleHttp\Stream\GuzzleStreamWrapper:: getResource(...)
to convert the StreamInterface to a PHP resource.
from flysystem-google-cloud-storage.
Well, if somebody is using that method and relying that to return StreamInterface, they might consider this a breaking change, if it's changed to resource :)
from flysystem-google-cloud-storage.
Any progress on this one?
from flysystem-google-cloud-storage.
I've merged this into master now.
Will push this into a 5.0.0 release.
from flysystem-google-cloud-storage.
This breaks MountManager::copy()
which passes the buffer up to Filesystem::writeStream()
and subsequently throws an exception.
I can confirm that the latest commit fixes this issue.
from flysystem-google-cloud-storage.
Yup. Hoping for a 5.0 release soon.
from flysystem-google-cloud-storage.
I've pushed a new major, 5.0.0 with the above fix.
https://github.com/Superbalist/flysystem-google-cloud-storage/releases/tag/5.0.0
Thanks!
from flysystem-google-cloud-storage.
Related Issues (20)
- Renaming and moving Folders does not work HOT 1
- Function getOptionsFromConfig() is not working HOT 1
- undefined method: getUrl(); HOT 1
- get url from firebase storage using php
- has function does not return true for directories HOT 2
- upload fails with uniform access controls HOT 4
- ReadMe Correction for getUrl
- Supporting Flysystem 2.x HOT 4
- Getting 404 when i try to delete directory.
- File stream is dropped on writeStream() HOT 5
- Question: is it possible to set Cache-Control? HOT 1
- Authetification Issue HOT 2
- What's the status of this project? HOT 2
- Dependencies flysystem
- Could you update the library
- How to delete a dir with millions of files?
- PHP Warning thrown after asset Uploaded - stream provided gets corrupted HOT 1
- GoogleStorageAdapter::deleteDir fails to delete a directory HOT 2
- Is there a reason to explicitly set the visibility if not passed? HOT 7
- Changes to google api endpoint HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flysystem-google-cloud-storage.