updated-packages

This commit is contained in:
RafficMohammed
2023-01-08 00:13:22 +05:30
parent 3ff7df7487
commit da241bacb6
12659 changed files with 563377 additions and 510538 deletions

View File

@@ -66,11 +66,20 @@ trait AwsClientTrait
public function __call($name, array $args)
{
if (substr($name, -5) === 'Async') {
$name = substr($name, 0, -5);
$isAsync = true;
}
if (!empty($this->aliases[ucfirst($name)])) {
$name = $this->aliases[ucfirst($name)];
}
$params = isset($args[0]) ? $args[0] : [];
if (substr($name, -5) === 'Async') {
if (!empty($isAsync)) {
return $this->executeAsync(
$this->getCommand(substr($name, 0, -5), $params)
$this->getCommand($name, $params)
);
}