-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MongoDB Subscription Consumer feature #565
MongoDB Subscription Consumer feature #565
Conversation
pkg/mongodb/MongodbMessage.php
Outdated
@@ -65,6 +65,22 @@ public function __construct(string $body = '', array $properties = [], array $he | |||
$this->redelivered = false; | |||
} | |||
|
|||
public static function fromArrayDbResult(array $arrayResult): self |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move the method to the context, make it public with @internal
docblock, look at AMQP cotext
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, done!
pkg/mongodb/MongodbContext.php
Outdated
*/ | ||
public function convertMessage(array $mongodbMessage): MongodbMessage | ||
{ | ||
$mongodbMessageObj = new MongodbMessage( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$this->createMessage()
could you please also update the transport doc like this one https://github.com/php-enqueue/enqueue-dev/blob/master/docs/transport/amqp.md#subscription-consumer |
8009b56
to
d049817
Compare
MongoDB Subscription Consumer feature
No description provided.