Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 410b500

Browse files
committedOct 18, 2018
Replaced constructor with owned method createMessage() in MongodbContext.
1 parent 2ce87cc commit 410b500

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎pkg/mongodb/MongodbContext.php

+1-1
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)
Please sign in to comment.