Comment on page
Consumer allow use to customize experience to fetch from chosen source:
// 1. Message Consumer
// 2. Method declaration
public function execute(string $message, array $headers) : void
// do something with Message
// if you have converter registered you can type hint exact type you expect
Message Consumer- This tells Ecotone to consider given method to be message consumer. First parameter is used as Consumer Name and this is how it will be run.
Method declaration- Depending how you define your method declaration, this way you will receive Message. In case of type hint for
stringthen Message payload will be delivered to you as string (xml/json however it's formatted).