Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f1c706c

Browse files
committed
[doc][skip ci] fix typos in snippets.
1 parent 34c0d03 commit f1c706c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

docs/quick_tour.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ It provides easy to use services for producing and processing messages.
163163
It supports unified format for setting message expiration, delay, timestamp, correlation id.
164164
It supports [message bus](http://www.enterpriseintegrationpatterns.com/patterns/messaging/MessageBus.html) so different applications can talk to each other.
165165

166-
Here's an example of how you can send and consume event messages.
166+
Here's an example of how you can send and consume **event messages**.
167167

168168
```php
169169
<?php
@@ -178,15 +178,19 @@ $client = new SimpleClient('file://foo/bar');
178178

179179
$client->setupBroker();
180180

181+
$client->sendEvent('a_foo_topic', 'message');
182+
181183
$client->bind('a_foo_topic', 'fooProcessor', function(PsrMessage $message) {
184+
echo $message->getBody().PHP_EOL;
185+
182186
// your event processor logic here
183187
});
184188

185189
// this is a blocking call, it'll consume message until it is interrupted
186190
$client->consume();
187191
```
188192

189-
and command messages:
193+
and **command messages**:
190194

191195
```php
192196
<?php
@@ -201,8 +205,7 @@ use Enqueue\Consumption\Result;
201205
$client = new SimpleClient('amqp:');
202206

203207
// composer require enqueue/fs
204-
$client = new SimpleClient('file://foo/bar');
205-
$client->
208+
//$client = new SimpleClient('file://foo/bar');
206209

207210
$client->setupBroker();
208211

0 commit comments

Comments
 (0)