Skip to content

Commit 1ebec29

Browse files
[Messenger] send using the routing_key for AMQP transport
1 parent 6744113 commit 1ebec29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Transport/AmqpExt/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function publish(string $body, array $headers = array()): void
9898
$this->setup();
9999
}
100100

101-
$this->exchange()->publish($body, null, AMQP_NOPARAM, array('headers' => $headers));
101+
$this->exchange()->publish($body, $this->queueConfiguration['routing_key'] ?? null, AMQP_NOPARAM, array('headers' => $headers));
102102
}
103103

104104
/**

0 commit comments

Comments
 (0)