feat(ObjectStore): Allow overriding arguments per bucket

Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
provokateurin 2025-12-01 15:18:33 +01:00 committed by backportbot[bot]
parent ae91cda87d
commit 57734fbd01

View file

@ -35,6 +35,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']);