You are here

public function S3fsServiceInterface::getAmazonS3Client in S3 File System 4.0.x

Same name and namespace in other branches
  1. 8.3 src/S3fsServiceInterface.php \Drupal\s3fs\S3fsServiceInterface::getAmazonS3Client()

Sets up the S3Client object.

Parameters

array $config: Array of configuration settings from which to configure the client.

Return value

\Aws\S3\S3Client The fully-configured S3Client object.

Throws

\Drupal\s3fs\S3fsException Exception when a known error occurs.

1 method overrides S3fsServiceInterface::getAmazonS3Client()
S3fsService::getAmazonS3Client in src/S3fsService.php
Sets up the S3Client object. For performance reasons, only one S3Client object will ever be created within a single request.

File

src/S3fsServiceInterface.php, line 43

Class

S3fsServiceInterface
S3fs service interface.

Namespace

Drupal\s3fs

Code

public function getAmazonS3Client(array $config);