Skip to content

Instantly share code, notes, and snippets.

@oste
Last active December 17, 2015 06:29
Show Gist options
  • Save oste/5565851 to your computer and use it in GitHub Desktop.
Save oste/5565851 to your computer and use it in GitHub Desktop.
aws sdk2 s3 service results in exception
protected function getAwsS3Service()
{
return $this->services['aws_s3'] = call_user_func(array('Aws\\S3\\S3Client', 'factory'), 'secret', 'key');
}
$this->get('aws_s3');
//results in
//Warning: Illegal string offset 'client.backoff' in ../vendor/aws/aws-sdk-php/src/Aws/S3/S3Client.php line 186
aws_s3:
class: Aws\S3\S3Client
factory_class: Aws\S3\S3Client
factory_method: factory
arguments: [%aws_key%, %aws_secret%]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment