andersundsehr / aus_driver_amazon_s3

Provides a TYPO3 FAL driver for the Amazon Web Service S3
GNU Lesser General Public License v3.0
21 stars 40 forks source link

Set configuration (e.g. publicBase URL) in Hook #58

Closed grexen closed 5 years ago

grexen commented 5 years ago

Hey,

I know it's possible to create a hook to manipulate configuration settings like region and credentials, but I sadly can't find out how to manipulate other settings like publicBaseUrl and bucket. Can you make this possible?

class AmazonS3DriverHook
{
    /**
     * @param array $params
     * @param AmazonS3Driver $obj
     */
    public function initializeClient(array &$params, $obj){

        $params['configuration']['publicBaseUrl'] = 'test.de'; ## doesn't work
        $params['configuration']['region'] = 'test region'; ##works
    }
}