Configure to use RabbitmQ virtual Host

Hi,

I’m consolidating multiple application on one RabbitMq server. So I want to use different vhost inside RabbitMq.

To do that I have change RabbitMQ.php
Before
$this->connection = new AMQPStreamConnection($this->parameters[“host”], $this->parameters[“port”] ?: 5672, $this->parameters[“username”], $this->parameters[“password”])

After
$this->connection = new AMQPStreamConnection($this->parameters[“host”], $this->parameters[“port”] ?: 5672, $this->parameters[“username”], $this->parameters[“password”], $this->parameters[“vhost”]);

And added a vhost after password in Paramters.php under RabbitMq
“rabbitmq” => [
“use” => true,
“host” => “rabbitmq01”,
“port” => 5672,
“username” => “myUsername”,
“password” => “myPassword”,
“vhost” => “myVhost”
]

Question: Can you integrate that feature ?

Thanks for this proposal and sorry for my very very late reply, it seems like I didn’t receive a notification for your message.
I just integrated your changes, it will be available start of next year in the main branch.
Romaric