prolic / HumusAmqp

PHP 7.4 AMQP library
https://humusamqp.readthedocs.io/
MIT License
76 stars 17 forks source link

adds exchange name as array key in rpc client factory #30

Closed oqq closed 7 years ago

oqq commented 7 years ago

In JsonRpcRequest the first constructor argument is used to define the exchange to be used for publishing. This string is than used in JsonRpcClient to find the configured exchange in an array. But the RpcClientFactory only uses increasing integers as array keys.

This PR changes this behavior by adding the exchange name as array key.