classes/Cloud/Storage/Driver/S3/S3Storage.php
protected function getS3MultiRegionClient() {
		if(!$this->enabled()) {
			return null;
		}

		$config = [
			'version' => 'latest',
			'credentials' => [
				'key' => $this->key,
				'secret' => $this->secret
			]
		];

		if(!empty($this->endpoint)) {
			$config['endpoint'] = $this->endpoint;

			if($this->endPointPathStyle) {
				$config['use_path_style_endpoint'] = true;
			}
		}

		if($this->useTransferAcceleration) {
			$config['use_accelerate_endpoint'] = true;
		}

		$s3 = new S3MultiRegionClient($config);

		return $s3;
	}
protected function getS3MultiRegionClient() {
		if(!$this->enabled()) {
			return null;
		}

		$config = [
			'version' => 'latest',
			'credentials' => [
				'key' => $this->key,
				'secret' => $this->secret
			]
		];

		if(!empty($this->endpoint)) {
			$config['endpoint'] = $this->endpoint;

			if($this->endPointPathStyle) {
				$config['use_path_style_endpoint'] = true;
			}
		}

		if($this->useTransferAcceleration) {
			$config['use_accelerate_endpoint'] = true;
		}

		$s3 = new S3MultiRegionClient($config);

		return $s3;
	}
protected function getS3MultiRegionClient ( ) { if ( ! $ this -> enabled ( ) ) { return null ; } $ config = [ 'version' => 'latest' , 'credentials' => [ 'key' => $ this -> key , 'secret' => $ this -> secret ] ] ; if ( ! empty ( $ this -> endpoint ) ) { $ config [ 'endpoint' ] = $ this -> endpoint ; if ( $ this -> endPointPathStyle ) { $ config [ 'use_path_style_endpoint' ] = true ; } } if ( $ this -> useTransferAcceleration ) { $ config [ 'use_accelerate_endpoint' ] = true ; } $ s3 = new S3MultiRegionClient ( $ config ) ; return $ s3 ; }
Builds and returns an S3MultiRegionClient
@return S3MultiRegionClient|null
Builds and returns an S3MultiRegionClient