src/ExchangeLocator/InMemoryLocator.php
protected function addExchanges(array $commandClassToHandlerMap)
    {
        foreach ($commandClassToHandlerMap as $messageClass => $handler) {
            $this->addExchange($handler, $messageClass);
        }
    }
protected function addExchanges(array $commandClassToHandlerMap)
    {
        foreach ($commandClassToHandlerMap as $messageClass => $handler) {
            $this->addExchange($handler, $messageClass);
        }
    }
protected function addExchanges ( array $ commandClassToHandlerMap ) { foreach ( $ commandClassToHandlerMap as $ messageClass => $ handler ) { $ this -> addExchange ( $ handler , $ messageClass ) ; } }
Allows you to add multiple exchanges at once.

The map should be an array in the format of:
[
AddTaskCommand::class      => $someAMQPExchangeInstance,
CompleteTaskCommand::class => $someAMQPExchangeInstance,
]

@param array $commandClassToHandlerMap
Allows you to add multiple exchanges at once .