Laravel version update
Laravel version update
This commit is contained in:
19
vendor/aws/aws-sdk-php/src/AwsClient.php
vendored
19
vendor/aws/aws-sdk-php/src/AwsClient.php
vendored
@@ -102,6 +102,13 @@ class AwsClient implements AwsClientInterface
|
||||
* accepts a PSR-7 request object and returns a promise that is fulfilled
|
||||
* with a PSR-7 response object or rejected with an array of exception
|
||||
* data. NOTE: This option supersedes any provided "handler" option.
|
||||
* - idempotency_auto_fill: (bool|callable) Set to false to disable SDK to
|
||||
* populate parameters that enabled 'idempotencyToken' trait with a random
|
||||
* UUID v4 value on your behalf. Using default value 'true' still allows
|
||||
* parameter value to be overwritten when provided. Note: auto-fill only
|
||||
* works when cryptographically secure random bytes generator functions
|
||||
* (random_bytes, openssl_random_pseudo_bytes or mcrypt_create_iv) can be
|
||||
* found. You may also provide a callable source of random bytes.
|
||||
* - profile: (string) Allows you to specify which profile to use when
|
||||
* credentials are created from the AWS credentials file in your HOME
|
||||
* directory. This setting overrides the AWS_PROFILE environment
|
||||
@@ -267,13 +274,17 @@ class AwsClient implements AwsClientInterface
|
||||
$resolver = static function (
|
||||
CommandInterface $c
|
||||
) use ($api, $provider, $name, $region, $version) {
|
||||
if ('none' === $api->getOperation($c->getName())['authtype']) {
|
||||
$version = 'anonymous';
|
||||
$authType = $api->getOperation($c->getName())['authtype'];
|
||||
switch ($authType){
|
||||
case 'none':
|
||||
$version = 'anonymous';
|
||||
break;
|
||||
case 'v4-unsigned-body':
|
||||
$version = 'v4-unsigned-body';
|
||||
break;
|
||||
}
|
||||
|
||||
return SignatureProvider::resolve($provider, $version, $name, $region);
|
||||
};
|
||||
|
||||
$this->handlerList->appendSign(
|
||||
Middleware::signer($this->credentialProvider, $resolver),
|
||||
'signer'
|
||||
|
||||
Reference in New Issue
Block a user