You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use Gaufrette with GoogleCloudStorage adapter in production and local filesystem in development and I observe differences on the returned type of getContent() method of File object.
getContent calls Filesystem->read() which calls adaptater read() method.
Returned type of File->getContent() should be a string.
But, with GoogleCloudStorage adapter, the read() method return a StreamInterface ($response->getBody()) when Google_Http_Request does not exist (view here).
I suppose this line should be fixed with $response->getBody()->getContents()
Thx in advance.
The text was updated successfully, but these errors were encountered:
I never used the GoogleCloudStorage adapter. May the issue you encounter be related to a new version of guzzle or the google library?
In any case, PR are welcome to provide any fix. Please also consider using your own adapter instead of the one provided in this library that may be a little outdated.
Hi,
I use Gaufrette with GoogleCloudStorage adapter in production and local filesystem in development and I observe differences on the returned type of getContent() method of File object.
getContent calls Filesystem->read() which calls adaptater read() method.
Returned type of File->getContent() should be a string.
But, with GoogleCloudStorage adapter, the read() method return a StreamInterface ($response->getBody()) when Google_Http_Request does not exist (view here).
I suppose this line should be fixed with
$response->getBody()->getContents()
Thx in advance.
The text was updated successfully, but these errors were encountered: