You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ This middleware requires a serializer and a storage that will depend on the Queu
49
49
50
50
To set it up, register the `ProducerEventBusMiddleware` to the Event Bus. Because we'll need to define a second EventBus (consumer), we'll call this the `ProducerEventBus`.
51
51
52
-
**ProducerEventBus**
52
+
#### ProducerEventBus
53
53
54
54
```php
55
55
<?php
@@ -95,7 +95,7 @@ $container['ProducerEventBus'] = function() use ($container) {
95
95
};
96
96
```
97
97
98
-
**Consumer for the ProducerEventBus**
98
+
#### Consumer for the ProducerEventBus
99
99
100
100
The Consumer will need to be a script that reads the EventBus definitions and subscribed events in order to run until all events are handled. To do so, we'll need to register a new `EventBus` we'll refer as `ConsumerEventBus`.
101
101
@@ -129,7 +129,7 @@ $container['ErrorQueue'] = function() use ($container) {
129
129
130
130
```
131
131
132
-
**The Consumer code**
132
+
#### The Consumer code
133
133
134
134
Finally, we'll have to call a consumer. This package already provides a fully working consumer implementation: `EventBusWorker`.
135
135
@@ -151,7 +151,7 @@ Consumer class will run the `consume` method until all events are consumed. Then
151
151
152
152
If you need to keep the consumer running forever use server scripts like [Supervisor](http://supervisord.org/).
153
153
154
-
**Supervisor Configuration**
154
+
#### Supervisor Configuration
155
155
156
156
Supervisor is a process monitor for the Linux operating system, and will automatically restart your workers if they fail. To install Supervisor on Ubuntu, you may use the following command:
0 commit comments