Skip to content

Commit b47833e

Browse files
authored
Merge pull request #39 from pgaultier/feature/allowMinioAccess
Feature/allow minio access
2 parents 2740506 + 1c46288 commit b47833e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# CHANGELOG
22

3+
- AWS S3: added `pathStyleEndpoint` to allow the use of https://www.minio.io/ as storage service
4+
35
## 0.9.1
46

57
- all adapters: added getter for native filesystem `getFilesystem()`

src/AwsS3Filesystem.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ class AwsS3Filesystem extends Filesystem
4646
* @var string|null
4747
*/
4848
public $prefix;
49+
/**
50+
* @var bool
51+
*/
52+
public $pathStyleEndpoint = false;
4953
/**
5054
* @var array
5155
*/
@@ -87,6 +91,10 @@ protected function prepareAdapter()
8791
]
8892
];
8993

94+
if ($this->pathStyleEndpoint === true) {
95+
$config['use_path_style_endpoint'] = true;
96+
}
97+
9098
if ($this->region !== null) {
9199
$config['region'] = $this->region;
92100
}

0 commit comments

Comments
 (0)