Skip to content

Commit

Permalink
Merge pull request #3 from MammatusPHP/add-message-argument-to-worker…
Browse files Browse the repository at this point in the history
…-perform-method

Add message argument to worker perform method
  • Loading branch information
WyriHaximus authored May 8, 2024
2 parents b081f74 + 5a98745 commit 0b67623
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 4 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"description": "\ud83d\udcdc Queue contracts",
"license": "MIT",
"require": {
"php": "^8.2"
"php": "^8.2",
"queue-interop/queue-interop": "^0.8.1"
},
"require-dev": {
"wyrihaximus/test-utilities": "^5.6"
Expand Down
56 changes: 54 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

namespace Mammatus\Queue\Contracts;

use Interop\Queue\Message;

interface Worker
{
public function perform(): void;
public function perform(Message $message): void;
}

0 comments on commit 0b67623

Please sign in to comment.