updated-packages
This commit is contained in:
30
vendor/aws/aws-sdk-php/src/Command.php
vendored
30
vendor/aws/aws-sdk-php/src/Command.php
vendored
@@ -14,6 +14,9 @@ class Command implements CommandInterface
|
||||
/** @var HandlerList */
|
||||
private $handlerList;
|
||||
|
||||
/** @var Array */
|
||||
private $authSchemes;
|
||||
|
||||
/**
|
||||
* Accepts an associative array of command options, including:
|
||||
*
|
||||
@@ -32,6 +35,9 @@ class Command implements CommandInterface
|
||||
if (!isset($this->data['@http'])) {
|
||||
$this->data['@http'] = [];
|
||||
}
|
||||
if (!isset($this->data['@context'])) {
|
||||
$this->data['@context'] = [];
|
||||
}
|
||||
}
|
||||
|
||||
public function __clone()
|
||||
@@ -54,6 +60,30 @@ class Command implements CommandInterface
|
||||
return $this->handlerList;
|
||||
}
|
||||
|
||||
/**
|
||||
* For overriding auth schemes on a per endpoint basis when using
|
||||
* EndpointV2 provider. Intended for internal use only.
|
||||
*
|
||||
* @param array $authSchemes
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
public function setAuthSchemes(array $authSchemes)
|
||||
{
|
||||
$this->authSchemes = $authSchemes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get auth schemes added to command as required
|
||||
* for endpoint resolution
|
||||
*
|
||||
* @returns array | null
|
||||
*/
|
||||
public function getAuthSchemes()
|
||||
{
|
||||
return $this->authSchemes;
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
public function get($name)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user