1
0
Fork 0
mirror of https://github.com/archtechx/jobpipeline.git synced 2025-12-12 13:54:03 +00:00

improve readme

This commit is contained in:
Samuel Štancl 2023-03-16 22:14:21 +01:00 committed by GitHub
parent 39ddcded04
commit 5e2d8720a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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