File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 3030 */
3131 'worker ' => env ('RABBITMQ_WORKER ' , 'default ' ),
3232
33+ /*
34+ * Vhost prefix for organization-specific vhosts.
35+ */
36+ 'vhost_prefix ' => env ('RABBITMQ_VHOST_PREFIX ' , 'organization_ ' ),
37+
3338];
Original file line number Diff line number Diff line change 99
1010class VhostsService
1111{
12- public const VHOST_PREFIX = 'organization_ ' ;
13-
1412 /**
1513 * @param RabbitApiClient $rabbitApiClient
1614 * @param LoggerInterface $logger
@@ -204,7 +202,9 @@ public function setVhostPermissions(string $vhostName): bool
204202 */
205203 public function getVhostName (int $ organizationId ): string
206204 {
207- return self ::VHOST_PREFIX . $ organizationId ;
205+ $ vhostPrefix = config ('queue.connections.rabbitmq_vhosts.vhost_prefix ' , 'organization_ ' );
206+
207+ return $ vhostPrefix . $ organizationId ;
208208 }
209209
210210 /**
You can’t perform that action at this time.
0 commit comments