Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lennyrouanet committed Apr 21, 2022
1 parent 5d473cf commit 8b4032d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions component/S3.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ class S3
{
protected S3Client $S3Client;

public function __construct(string $region, string $endpoint, string $accessKey, string $secretKey)
public function __construct(string $region, string $endpoint, string $accessKey, string $secretKey, string $version = '2006-03-01')
{
$this->S3Client = new S3Client([
'region' => $region,
'version' => '2006-03-01',
'endpoint' => $$endpoint,
'endpoint' => $endpoint,
'credentials' => [
'key' => $accessKey,
'secret' => $secretKey,
],
'version' => $version,
'use_path_style_endpoint' => true
]);
}
Expand Down

0 comments on commit 8b4032d

Please sign in to comment.