Repository navigation
Replies: 1 comment
|
This came up in #1208 a while back. Frank's reason was that HTTP concerns aren't in scope for Flysystem, so it sticks to plain resources for streams. You can still get there with $filesystem->writeStream($path, $stream->detach());I tried it with Flysystem 3.36 and guzzlehttp/psr7 2.8 on PHP 8.5. Passing the stream object directly throws |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
Is there a reason why the
FileSystem:writeStream()function doesn't accept a PSR-7StreamInterfaceobject as its$contentsparameter?It seems to me that the
StreamInterfaceprovides all the required features to do so, and it can be done without requiring a PSR-7 package to be installed.All reactions