Skip to content

Commit

Permalink
[6.x] Add support for stream reads
Browse files Browse the repository at this point in the history
Backport laravel#34001
  • Loading branch information
barryvdh committed Sep 23, 2020
1 parent a056be6 commit ccbf7ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Illuminate/Filesystem/FilesystemManager.php
Expand Up @@ -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
));
}

Expand Down

0 comments on commit ccbf7ae

Please sign in to comment.