From ccbf7ae8802ec70afc1f2428b26309cfe8059971 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Wed, 23 Sep 2020 09:33:20 +0200 Subject: [PATCH 1/2] [6.x] Add support for stream reads Backport https://github.com/laravel/framework/pull/34001 --- src/Illuminate/Filesystem/FilesystemManager.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Illuminate/Filesystem/FilesystemManager.php b/src/Illuminate/Filesystem/FilesystemManager.php index 3dacc2b10aa4..8c24488abb95 100644 --- a/src/Illuminate/Filesystem/FilesystemManager.php +++ b/src/Illuminate/Filesystem/FilesystemManager.php @@ -207,9 +207,11 @@ public function createS3Driver(array $config) $root = $s3Config['root'] ?? null; $options = $config['options'] ?? []; + + $streamReads = $config['stream_reads'] ?? false; return $this->adapt($this->createFlysystem( - new S3Adapter(new S3Client($s3Config), $s3Config['bucket'], $root, $options), $config + new S3Adapter(new S3Client($s3Config), $s3Config['bucket'], $root, $options, $streamReads), $config )); } From bb352e939e98e8bf77f35070586439a16c2ebe8b Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Wed, 23 Sep 2020 09:35:10 +0200 Subject: [PATCH 2/2] Update FilesystemManager.php --- src/Illuminate/Filesystem/FilesystemManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Filesystem/FilesystemManager.php b/src/Illuminate/Filesystem/FilesystemManager.php index 8c24488abb95..6003ac6b9634 100644 --- a/src/Illuminate/Filesystem/FilesystemManager.php +++ b/src/Illuminate/Filesystem/FilesystemManager.php @@ -207,7 +207,7 @@ public function createS3Driver(array $config) $root = $s3Config['root'] ?? null; $options = $config['options'] ?? []; - + $streamReads = $config['stream_reads'] ?? false; return $this->adapt($this->createFlysystem(