You are here

public static function StreamWrapper::setClient in AmazonS3 7.2

Set the client associated with this stream wrapper.

Note that all stream wrapper instances share a global client.

Parameters

\Aws\S3\S3Client $client: The client to use. Set to NULL to remove an existing client.

1 call to StreamWrapper::setClient()
StreamWrapper::__construct in src/StreamWrapper.php
Construct a new stream wrapper.

File

src/StreamWrapper.php, line 154
Drupal stream wrapper implementation for Amazon S3

Class

StreamWrapper
@file Drupal stream wrapper implementation for Amazon S3

Namespace

Drupal\amazons3

Code

public static function setClient(AwsS3Client $client = NULL) {
  self::$client = $client;
}