MaxServ / t3ext-fal_s3

S3 driver for FAL
GNU General Public License v2.0
13 stars 10 forks source link

[!!!] Make endpoint and endpoint path style configurable, drop TYPO3 v6 support and set mimimum PHP version to 7.0 #63

Closed djcprinse closed 1 year ago

djcprinse commented 2 years ago

To make this extension work with third party S3 object storage compatible providers, the endpoint should be configurable from within the configuration. Besides the endpoint, also the use_path_style_endpoint option should be configurable, which prevents that the AmazonClient will try to create an Amazon-like endpoint.

Some third-party providers do not use a region setting, so the region can be empty. The AmazonClient requires a region, however it may be an empty string (is it a non-nullable of type string)

The configuration reading has been simplified and made better readable by using early exit statements instead of nested if-else statements.

The code has been refactored with PHP 5.6 support in mind for TYPO3 v6.2, however as stated in pull request #62, we should decide if we still support ad want to support TYPO3 v6, or that we should focus on higher versions with an updated PHP version constraint to a minumum of php 7.0