Skip to content

Commit bcf92bc

Browse files
committed
Replace deprecated client
1 parent bd12aab commit bcf92bc

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

src/CloudTasksApiConcrete.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Stackkit\LaravelGoogleCloudTasksQueue;
66

7-
use Google\Cloud\Tasks\V2\CloudTasksClient;
7+
use Google\Cloud\Tasks\V2\Client\CloudTasksClient;
88
use Google\Cloud\Tasks\V2\Task;
99

1010
class CloudTasksApiConcrete implements CloudTasksApiContract

src/CloudTasksConnector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Stackkit\LaravelGoogleCloudTasksQueue;
66

7-
use Google\Cloud\Tasks\V2\CloudTasksClient;
7+
use Google\Cloud\Tasks\V2\Client\CloudTasksClient;
88
use Illuminate\Queue\Connectors\ConnectorInterface;
99

1010
class CloudTasksConnector implements ConnectorInterface

src/CloudTasksQueue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
use Google\Cloud\Tasks\V2\AppEngineHttpRequest;
88
use Google\Cloud\Tasks\V2\AppEngineRouting;
9-
use Google\Cloud\Tasks\V2\CloudTasksClient;
9+
use Google\Cloud\Tasks\V2\Client\CloudTasksClient;
1010
use Google\Cloud\Tasks\V2\HttpMethod;
1111
use Google\Cloud\Tasks\V2\HttpRequest;
1212
use Google\Cloud\Tasks\V2\OidcToken;

src/CloudTasksServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Stackkit\LaravelGoogleCloudTasksQueue;
66

7-
use Google\Cloud\Tasks\V2\CloudTasksClient;
7+
use Google\Cloud\Tasks\V2\Client\CloudTasksClient;
88
use Illuminate\Queue\Events\JobExceptionOccurred;
99
use Illuminate\Queue\Events\JobFailed;
1010
use Illuminate\Queue\Events\JobProcessed;

src/TaskHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace Stackkit\LaravelGoogleCloudTasksQueue;
66

77
use Google\ApiCore\ApiException;
8-
use Google\Cloud\Tasks\V2\CloudTasksClient;
8+
use Google\Cloud\Tasks\V2\Client\CloudTasksClient;
99
use Illuminate\Contracts\Encryption\Encrypter;
1010
use Illuminate\Queue\WorkerOptions;
1111
use Illuminate\Support\Str;

tests/CloudTasksApiTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace Tests;
66

77
use Google\ApiCore\ApiException;
8-
use Google\Cloud\Tasks\V2\CloudTasksClient;
8+
use Google\Cloud\Tasks\V2\Client\CloudTasksClient;
99
use Google\Cloud\Tasks\V2\HttpMethod;
1010
use Google\Cloud\Tasks\V2\HttpRequest;
1111
use Google\Cloud\Tasks\V2\Task;

tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Closure;
88
use Firebase\JWT\JWT;
99
use Google\ApiCore\ApiException;
10-
use Google\Cloud\Tasks\V2\CloudTasksClient;
10+
use Google\Cloud\Tasks\V2\Client\CloudTasksClient;
1111
use Google\Cloud\Tasks\V2\Task;
1212
use Illuminate\Foundation\Testing\DatabaseTransactions;
1313
use Illuminate\Queue\Events\JobReleasedAfterException;

0 commit comments

Comments
 (0)