Last active
December 17, 2015 06:29
-
-
Save oste/5565851 to your computer and use it in GitHub Desktop.
aws sdk2 s3 service results in exception
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected function getAwsS3Service() | |
{ | |
return $this->services['aws_s3'] = call_user_func(array('Aws\\S3\\S3Client', 'factory'), 'secret', 'key'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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