ricbra / rabbitmq-cli-consumer

Consume RabbitMQ messages into any cli program
MIT License
247 stars 49 forks source link

Unserialize as array in the example with headers #43

Closed sroze closed 8 years ago

sroze commented 8 years ago

Else... that won't work as the AMQPMessage class requires the properties argument to be an array.

ricbra commented 8 years ago

What's the difference? I don't see it. The result is the same?

sroze commented 8 years ago

The difference is that it's arrays instead of stdClasses, and the AMQPMessage object don't supports stdClass inside the headers for example!

ricbra commented 8 years ago

Ah, now I understand! Thanks.