Skip to content

Commit 26ecb89

Browse files
committed
[doc] upd async symfony events doc.
1 parent 7fbeaca commit 26ecb89

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/bundle/async_events.md

+12
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@ services:
4343
- { name: 'kernel.event_listener', async: true, event: 'foo', method: 'onEvent' }
4444
```
4545
46+
or to `kernel.event_subscriber`:
47+
48+
```yaml
49+
# app/config/config.yml
50+
51+
services:
52+
test_async_subscriber:
53+
class: 'AcmeBundle\Listener\TestAsyncSubscriber'
54+
tags:
55+
- { name: 'kernel.event_subscriber', async: true }
56+
```
57+
4658
That's basically it. The rest of the doc describes advanced features.
4759

4860
## Advanced Usage.

0 commit comments

Comments
 (0)