Skip to content

Commit cef0acf

Browse files
[9.x] Restore S3 client extra options (#41097)
* [9.x] Restore S3 client extra options * Update FilesystemManager.php * Update FilesystemManager.php Co-authored-by: Taylor Otwell <taylor@laravel.com>
1 parent a803bfd commit cef0acf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Filesystem/FilesystemManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public function createS3Driver(array $config)
242242

243243
$client = new S3Client($s3Config);
244244

245-
$adapter = new S3Adapter($client, $s3Config['bucket'], $root, $visibility, null, [], $streamReads);
245+
$adapter = new S3Adapter($client, $s3Config['bucket'], $root, $visibility, null, $config['options'] ?? [], $streamReads);
246246

247247
return new AwsS3V3Adapter(
248248
$this->createFlysystem($adapter, $config), $adapter, $s3Config, $client

0 commit comments

Comments
 (0)