We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent badfde5 commit 9636876Copy full SHA for 9636876
src/CloudTasksConnector.php
@@ -11,20 +11,6 @@ public function connect(array $config)
11
{
12
Config::validate($config);
13
14
- // @todo - clean this up
15
- if (app()->has(CloudTasksClient::class)) {
16
- $client = app(CloudTasksClient::class);
17
- } else {
18
- $client = new CloudTasksClient($this->buildConfig());
19
- }
20
-
21
- return new CloudTasksQueue($config, $client);
22
23
24
- private function buildConfig()
25
- {
26
- return [
27
- 'credentials' => Config::credentials(),
28
- ];
+ return new CloudTasksQueue($config, app(CloudTasksClient::class));
29
}
30
0 commit comments