Skip to content

Commit

Permalink
Merge pull request #34480 from barryvdh/patch-3
Browse files Browse the repository at this point in the history
[6.x] Add support for stream reads
  • Loading branch information
taylorotwell committed Sep 23, 2020
2 parents a056be6 + bb352e9 commit 68f6646
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 68f6646

Please sign in to comment.