Symfony 4 S3Client::factory issue: ‘class AwsS3S3Client not found’

I am trying getObject() from aws bucket, but when try s3Client, error: ‘class AwsS3S3Client not found’

$s3Client = S3Client::factory([
  'credentials' => [
  'key'    => $key,
  'secret' => $secret
  ],
'region' => $region,
'version' => 'latest',
'scheme' => 'http'
             ]);

Source: Symfony4 Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *