Imbo\EventListener\ImageVariations\Storage\S3::getClient PHP Method

getClient() private method

Get the S3Client instance
private getClient ( ) : S3Client
return Aws\S3\S3Client
    private function getClient()
    {
        if ($this->client === null) {
            $params = ['key' => $this->params['key'], 'secret' => $this->params['secret']];
            if ($this->params['region']) {
                $params['region'] = $this->params['region'];
            }
            $this->client = S3Client::factory($params);
        }
        return $this->client;
    }