The way the code is written, it always tries to declare an exchange. And that requires the configure permissions on the exchange resource from the user part. If the user has just write permissions and just wants to publish to that exchange, it raises an exception of access refused. Something that is not expected.
Php amqplib basic_publish allows users to publish messages to given exchange with just write permissions.
The way the code is written, it always tries to declare an exchange. And that requires the configure permissions on the exchange resource from the user part. If the user has just write permissions and just wants to publish to that exchange, it raises an exception of access refused. Something that is not expected.
Php amqplib basic_publish allows users to publish messages to given exchange with just write permissions.