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

  amazon-s3, php, symfony4

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

LEAVE A COMMENT