bug #28955 [Messenger] send using the routing_key for AMQP transport (nicolas-grekas)

This PR was merged into the 4.1 branch.

Discussion
----------

[Messenger] send using the routing_key for AMQP transport

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #28133
| License       | MIT
| Doc PR        | -

Shouldn't we publish using the routing_key that is used by the listening queue?

Commits
-------

666d2d962b [Messenger] send using the routing_key for AMQP transport
This commit is contained in:
Samuel ROZE 2018-10-25 16:30:32 +02:00
commit 76b2541468

View File

@ -98,7 +98,7 @@ class Connection
$this->setup();
}
$this->exchange()->publish($body, null, AMQP_NOPARAM, array('headers' => $headers));
$this->exchange()->publish($body, $this->queueConfiguration['routing_key'] ?? null, AMQP_NOPARAM, array('headers' => $headers));
}
/**