Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
fenric committed Mar 1, 2021
1 parent 855292c commit 0056c0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ $consumer->setAnnotationReader($annotationReader);
// [optional] use a JSON schema validator for queue messages...
$consumer->useJsonSchemaValidator();
// [optional] set a callback that will be called when a queue message is received...
$consumer->setMessageReceivedCallback(function () {
$consumer->setMessageReceivedCallback(function ($message) {
// here you can, for example, re-open doctrine entity managers...
});
// [optional] set a callback that will be called when a queue message is handled...
$consumer->setMessageHandledCallback(function () {
$consumer->setMessageHandledCallback(function ($message) {
// here you can, for example, clear doctrine entity managers...
});

Expand Down

0 comments on commit 0056c0c

Please sign in to comment.