Skip to content

Commit 8009b56

Browse files
committed
Replace constructor with owned method createMessage() in Mongodb Context.
1 parent e57a76c commit 8009b56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/mongodb/MongodbContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function createSubscriptionConsumer(): SubscriptionConsumer
114114
*/
115115
public function convertMessage(array $mongodbMessage): MongodbMessage
116116
{
117-
$mongodbMessageObj = new MongodbMessage(
117+
$mongodbMessageObj = $this->createMessage(
118118
$mongodbMessage['body'],
119119
JSON::decode($mongodbMessage['properties']),
120120
JSON::decode($mongodbMessage['headers'])

0 commit comments

Comments
 (0)