Skip to content

Commit ec0f36f

Browse files
authored
Merge pull request #3 from Ngob/1.0
Changing typo
2 parents 1316979 + f272385 commit ec0f36f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,15 @@ Sending a message
140140
In order to send a message, you simply use the `Exchange::publish` method:
141141

142142
```php
143-
$exchange->publish(new Message('your message body', 'message_key');
143+
$exchange->publish(new Message('your message body'), 'message_key');
144144
// ... and that's it!
145145
```
146146

147147
You may still want to configure a bit more the sending of your message. The `Exchange::publish` method accepts a number of optional arguments:
148148

149149
```php
150-
public function publish(Message $message,
151-
string $routingKey,
150+
public function publish(Message $message,
151+
string $routingKey,
152152
bool $mandatory = false,
153153
bool $immediate = false,
154154
$ticket = null);

0 commit comments

Comments
 (0)