- Issue created by @colin.eininger
- π«π·France colin.eininger
colin.eininger β changed the visibility of the branch 3543332-add-the-possibility to hidden.
- π«π·France colin.eininger
colin.eininger β changed the visibility of the branch 3543332-add-the-possibility to active.
- Merge request !3Issue #3543332: Allow defining the endpoint and version options of the s3 client. β (Closed) created by colin.eininger
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
Seems reasonable to me.
Can you provide a snippet of docs for the additional settings that I can add to the project page on merge? - π«π·France colin.eininger
Thanks for reviewing the MR.
Here are the snippets to update the project page.
Configuration
$settings['s3client.default_key'] = 'YOUR KEY HERE'; $settings['s3client.default_secret'] = 'YOUR SECRET HERE'; $settings['s3client.default_region'] = 'us-east-1'; // Or your preferred region. $settings['s3client.default_endpoint'] = 'https://s3.example.com'; // Not required with AWS endpoint. $settings['s3client.default_bucket_endpoint'] = TRUE; // If your endpoint is directly pointing to your bucket, you want to set this to TRUE. It has no effect if s3client.default_endpoint is undefined, default: FALSE. $settings['s3client.default_version'] = 'latest'; // Default: 2006-03-01.
Injecting the factory
// $endpoint, $bucketEndpoint and $version are optionnals. $client = $factory->createClient($key, $secret, $region, $endpoint, $bucketEndpoint, $version);