Laravel version update

Laravel version update
This commit is contained in:
Manish Verma
2018-08-06 18:48:58 +05:30
parent d143048413
commit 126fbb0255
13678 changed files with 1031482 additions and 778530 deletions

View File

@@ -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()