Skip to content

Commit a4c1878

Browse files
authored
Merge pull request #46 from creocoder/feature/aws-stream-reads
added streamReads param for AWS S3 adapter
2 parents 7fe8bad + 1f0ca0c commit a4c1878

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
"league/flysystem-webdav": "~1.0",
4343
"league/flysystem-ziparchive": "~1.0"
4444
},
45+
"conflict": {
46+
"league/flysystem-aws-s3-v3": "<1.0.26"
47+
},
4548
"repositories": [
4649
{
4750
"type": "pear",

src/AwsS3Filesystem.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ class AwsS3Filesystem extends Filesystem
5454
* @var array
5555
*/
5656
public $options = [];
57+
/**
58+
* @var bool
59+
*/
60+
public $streamReads = false;
5761
/**
5862
* @var string
5963
*/
@@ -119,6 +123,6 @@ protected function prepareAdapter()
119123

120124
$client = new S3Client($config);
121125

122-
return new AwsS3Adapter($client, $this->bucket, $this->prefix, $this->options);
126+
return new AwsS3Adapter($client, $this->bucket, $this->prefix, $this->options, $this->streamReads);
123127
}
124128
}

0 commit comments

Comments
 (0)