Skip to content

Commit

Permalink
Merge pull request #7 from cainaru/update-namespace-for-2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
lcatlett authored Apr 8, 2022
2 parents 65e0bf3 + e07de29 commit 9ef494c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Blt/Plugin/Commands/DrushAliasCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
use Acquia\Blt\Robo\BltTasks;
use Acquia\Blt\Robo\Exceptions\BltException;
use Acquia\Hmac\Exception\MalformedResponseException as MalformedResponseExceptionAlias;
use AcquiaCloudApi\CloudApi\Client;
use AcquiaCloudApi\CloudApi\Connector;
use AcquiaCloudApi\Connector\Client;
use AcquiaCloudApi\Connector\Connector;
use AcquiaCloudApi\Endpoints\Account;
use AcquiaCloudApi\Endpoints\Applications;
use AcquiaCloudApi\Endpoints\Environments;
Expand All @@ -21,7 +21,7 @@ class DrushAliasCommand extends BltTasks {
/**
* Cloud API client.
*
* @var \AcquiaCloudApi\CloudApi\Client
* @var \AcquiaCloudApi\Connector\Client
*/
protected $cloudApiClient;
/**
Expand Down Expand Up @@ -196,7 +196,7 @@ protected function setCloudApiClient($key, $secret) {
]);
$cloud_api = Client::factory($connector);
// We must call some method on the client to test authentication.
$account = new Account();
$account = new Account($cloud_api);
$account->get();
$this->cloudApiClient = $cloud_api;
}
Expand All @@ -215,7 +215,7 @@ protected function setCloudApiClient($key, $secret) {
/**
* Gets connection with API client.
*
* @return \AcquiaCloudApi\CloudApi\Client
* @return \AcquiaCloudApi\Connector\Client
* The API Client connection.
*/
protected function getCloudApiClient() {
Expand Down

0 comments on commit 9ef494c

Please # to comment.