Skip to content

Commit 027629c

Browse files
authored
Add check for the async-aws/sso package in the client factory (#1553)
1 parent 2263fa4 commit 027629c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Core/src/AwsClientFactory.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,10 @@ public function ssm(): SsmClient
522522

523523
public function sso(): SsoClient
524524
{
525+
if (!class_exists(SsoClient::class)) {
526+
throw MissingDependency::create('async-aws/sso', 'Sso');
527+
}
528+
525529
if (!isset($this->serviceCache[__METHOD__])) {
526530
$this->serviceCache[__METHOD__] = new SsoClient($this->configuration, $this->credentialProvider, $this->httpClient, $this->logger);
527531
}

0 commit comments

Comments
 (0)