PHP code example of andersundsehr / aus-driver-amazon-s3
1. Go to this page and download the library: Download andersundsehr/aus-driver-amazon-s3 library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
andersundsehr / aus-driver-amazon-s3 example snippets
namespace Vendor\ExtensionName\Hooks;
class AmazonS3DriverHook {
public function initializeClient(array &$params, $obj){
$params['s3Client'] = MyAwsFactory::getAwsS3Client($params['configuration']);
}
}
namespace Vendor\ExtensionName\Hooks;
class AmazonS3DriverHook {
public function initializeBaseUrl(array &$params, $obj){
$params['baseUrl'] = 'https://example.com';
}
}