Laravel version update
Laravel version update
This commit is contained in:
20
vendor/aws/aws-sdk-php/src/MultiRegionClient.php
vendored
20
vendor/aws/aws-sdk-php/src/MultiRegionClient.php
vendored
@@ -3,7 +3,6 @@ namespace Aws;
|
||||
|
||||
use Aws\Endpoint\PartitionEndpointProvider;
|
||||
use Aws\Endpoint\PartitionInterface;
|
||||
use GuzzleHttp\Promise\FulfilledPromise;
|
||||
|
||||
class MultiRegionClient implements AwsClientInterface
|
||||
{
|
||||
@@ -19,6 +18,8 @@ class MultiRegionClient implements AwsClientInterface
|
||||
private $args;
|
||||
/** @var array */
|
||||
private $config;
|
||||
/** @var HandlerList */
|
||||
private $handlerList;
|
||||
|
||||
public static function getArguments()
|
||||
{
|
||||
@@ -103,9 +104,18 @@ class MultiRegionClient implements AwsClientInterface
|
||||
$args['service'] = $this->parseClass();
|
||||
}
|
||||
|
||||
$this->handlerList = new HandlerList(function (
|
||||
CommandInterface $command
|
||||
) {
|
||||
list($region, $args) = $this->getRegionFromArgs($command->toArray());
|
||||
$command = $this->getClientFromPool($region)
|
||||
->getCommand($command->getName(), $args);
|
||||
return $this->executeAsync($command);
|
||||
});
|
||||
|
||||
$argDefinitions = static::getArguments();
|
||||
$resolver = new ClientResolver($argDefinitions);
|
||||
$args = $resolver->resolve($args, new HandlerList);
|
||||
$args = $resolver->resolve($args, $this->handlerList);
|
||||
$this->config = $args['config'];
|
||||
$this->factory = $args['client_factory'];
|
||||
$this->partition = $args['partition'];
|
||||
@@ -143,9 +153,7 @@ class MultiRegionClient implements AwsClientInterface
|
||||
*/
|
||||
public function getCommand($name, array $args = [])
|
||||
{
|
||||
list($region, $args) = $this->getRegionFromArgs($args);
|
||||
|
||||
return $this->getClientFromPool($region)->getCommand($name, $args);
|
||||
return new Command($name, $args, clone $this->getHandlerList());
|
||||
}
|
||||
|
||||
public function getConfig($option = null)
|
||||
@@ -168,7 +176,7 @@ class MultiRegionClient implements AwsClientInterface
|
||||
|
||||
public function getHandlerList()
|
||||
{
|
||||
return $this->getClientFromPool()->getHandlerList();
|
||||
return $this->handlerList;
|
||||
}
|
||||
|
||||
public function getApi()
|
||||
|
||||
Reference in New Issue
Block a user