Skip to content

Commit e2fa63a

Browse files
committed
Replaced constructor with owned method createMessage() in MongodbContext.
1 parent 7de21e0 commit e2fa63a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)