feat(ObjectStore): Allow overriding arguments per bucket

Signed-off-by: provokateurin <kate@provokateurin.de>
pull/56777/head
provokateurin 2025-12-01 15:18:33 +07:00 committed by backportbot[bot]
parent bfc4819c13
commit e67c8e739e
1 changed files with 4 additions and 0 deletions

@ -34,6 +34,10 @@ trait S3ConnectionTrait {
throw new \Exception('Bucket has to be configured.');
}
if (isset($params['multibucket']) && $params['multibucket'] === true && isset($params['perBucket'][$params['bucket']])) {
$params = array_merge($params, $params['perBucket'][$params['bucket']]);
}
$this->id = 'amazon::' . $params['bucket'];
$this->test = isset($params['test']);