Skip to content

Commit e41c0e3

Browse files
authored
Update PHP example (#86)
1 parent dcd70fd commit e41c0e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

readme.MD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ createdTaskResp, _ := client.CreateTask(context.Background(), &createTaskRequest
212212
The following example can be used for PHP.
213213
```php
214214
use Grpc\ChannelCredentials;
215+
use Google\Cloud\Core\InsecureCredentialsWrapper;
215216
use Google\Cloud\Tasks\V2\Task;
216217
use Google\Cloud\Tasks\V2\HttpMethod;
217218
use Google\Cloud\Tasks\V2\HttpRequest;
@@ -220,6 +221,7 @@ use Google\Cloud\Tasks\V2\CloudTasksClient;
220221
$client = new CloudTasksClient([
221222
'apiEndpoint' => 'localhost:8123',
222223
'transport' => 'grpc',
224+
'credentials' => new InsecureCredentialsWrapper(),
223225
'transportConfig' => [
224226
'grpc' => [
225227
'stubOpts' => [

0 commit comments

Comments
 (0)