Skip to content

Commit

Permalink
Add support for streamed reads (#34001)
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Aug 25, 2020
1 parent 7161c83 commit 06fa47c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Illuminate/Filesystem/FilesystemManager.php
Expand Up @@ -208,8 +208,10 @@ public function createS3Driver(array $config)

$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
));
}

Expand Down

0 comments on commit 06fa47c

Please sign in to comment.