We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1316979 + f272385 commit ec0f36fCopy full SHA for ec0f36f
1 file changed
README.md
@@ -140,15 +140,15 @@ Sending a message
140
In order to send a message, you simply use the `Exchange::publish` method:
141
142
```php
143
-$exchange->publish(new Message('your message body', 'message_key');
+$exchange->publish(new Message('your message body'), 'message_key');
144
// ... and that's it!
145
```
146
147
You may still want to configure a bit more the sending of your message. The `Exchange::publish` method accepts a number of optional arguments:
148
149
150
-public function publish(Message $message,
151
- string $routingKey,
+public function publish(Message $message,
+ string $routingKey,
152
bool $mandatory = false,
153
bool $immediate = false,
154
$ticket = null);
0 commit comments