Skip to content

Commit bda3142

Browse files
committed
upd doc.
1 parent abe8579 commit bda3142

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/bundle/async_events.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,10 @@ If you do not enable it, events will be processed as before: synchronously.
2121
# app/config/config.yml
2222

2323
enqueue:
24-
async_events: true
25-
26-
# if you'd like to send send messages onTerminate use spool_producer (it makes response time even lesser):
27-
28-
enqueue:
29-
async_events:
30-
enabled: true
31-
spool_producer: true
24+
async_events:
25+
enabled: true
26+
# if you'd like to send send messages onTerminate use spool_producer (it makes response time even lesser):
27+
# spool_producer: true
3228
```
3329

3430
## Usage
@@ -45,6 +41,10 @@ service:
4541
- { name: 'kernel.event_listener', async: true, event: 'foo', method: 'onEvent' }
4642
```
4743
44+
That's basically it. The rest of the doc describes advanced features.
45+
46+
## Advanced Usage.
47+
4848
You can also add an async listener directly and register a custom message processor for it:
4949
5050
```yaml
@@ -113,7 +113,7 @@ class FooEventProcessor implements PsrProcessor, TopicSubscriberInterface
113113

114114
The bundle uses [php serializer](https://github.com/php-enqueue/enqueue-dev/blob/master/pkg/enqueue-bundle/Events/PhpSerializerEventTransformer.php) transformer by default to pass events through MQ.
115115
You could create a transformer for the given event type. The transformer must implement `Enqueue\Bundle\Events\EventTransformer` interface.
116-
Consider the next example. It shows how to send an event that contains Doctrine entity as subject
116+
Consider the next example. It shows how to send an event that contains Doctrine entity as a subject
117117

118118
```php
119119
<?php

0 commit comments

Comments
 (0)