mirror of
https://github.com/archtechx/jobpipeline.git
synced 2025-12-12 13:54:03 +00:00
improve readme
This commit is contained in:
parent
39ddcded04
commit
5e2d8720a5
1 changed files with 3 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ JobPipeline::make([
|
|||
})->shouldBeQueued(true)
|
||||
```
|
||||
|
||||
If you want to push the job to a different queue, you can pass a string as a second parameter:
|
||||
If you wish to push the job to a different queue, you can pass a string as the second parameter:
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
|
@ -84,6 +84,8 @@ JobPipeline::make([
|
|||
})->shouldBeQueued(true, 'another-queue');
|
||||
```
|
||||
|
||||
This can be simplified by calling `shouldBeQueued(queue: 'another-queue')` since the first parameter defaults to `true`.
|
||||
|
||||
Finally, convert the pipeline to a listener and bind it to an event:
|
||||
|
||||
```php
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue