Skip to content

Commit

Permalink
Merge pull request #3 from Ngob/1.0
Browse files Browse the repository at this point in the history
Changing typo
  • Loading branch information
moufmouf committed Dec 1, 2016
2 parents 1316979 + f272385 commit ec0f36f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -140,15 +140,15 @@ Sending a message
In order to send a message, you simply use the `Exchange::publish` method:

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

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

```php
public function publish(Message $message,
string $routingKey,
public function publish(Message $message,
string $routingKey,
bool $mandatory = false,
bool $immediate = false,
$ticket = null);
Expand Down

0 comments on commit ec0f36f

Please sign in to comment.