Skip to content

Commit

Permalink
Add subscriber name to config and update link to pubsub doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
kainxspirits committed Apr 2, 2019
1 parent 6141f40 commit df46cf5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@ Kainxspirits\PubSubQueue\PubSubQueueServiceProvider::class,

Add a `pubsub` connection to your `config/queue.php` file. From there, you can use any configuration values from the original pubsub client. Just make sure to use snake_case for the keys name.

You can check [Google Cloud PubSub client](http://googlecloudplatform.github.io/google-cloud-php/#/docs/google-cloud/v0.62.0/pubsub/pubsubclient?method=__construct) for more details about the different options.
You can check [Google Cloud PubSub client](http://googleapis.github.io/google-cloud-php/#/docs/cloud-pubsub/master/pubsub/pubsubclient?method=__construct) for more details about the different options.

```php
'pubsub' => [
'driver' => 'pubsub',
'queue' => env('PUBSUB_QUEUE', 'default'),
'project_id' => env('PUBSUB_PROJECT_ID', 'your-project-id'),
'retries' => 3,
'request_timeout' => 60
'request_timeout' => 60,
'subscriber' => 'subscriber-name',
],
```

Expand Down

0 comments on commit df46cf5

Please sign in to comment.