Skip to content

Commit 2ab29a6

Browse files
committed
feat(ObjectStore): Allow overriding arguments per bucket
Signed-off-by: provokateurin <[email protected]>
1 parent e89a8d8 commit 2ab29a6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/private/Files/ObjectStore/S3ConnectionTrait.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ protected function parseParams($params) {
3939
throw new \Exception('Bucket has to be configured.');
4040
}
4141

42+
if (isset($params['multibucket']) && $params['multibucket'] === true && isset($params['perBucket'][$params['bucket']])) {
43+
$params = array_merge($params, $params['perBucket'][$params['bucket']]);
44+
}
45+
4246
$this->id = 'amazon::' . $params['bucket'];
4347

4448
$this->test = isset($params['test']);

0 commit comments

Comments
 (0)