Skip to content

Commit c89046c

Browse files
committed
Add info about the new listeners' priority feature to README and CHANGES
1 parent 325714a commit c89046c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
- Add `SentryExceptionListenerInterface` and the `exception_listener` option in the configuration (#47) to allow customization of the exception listener
44
- Add `SentrySymfonyEvents::PRE_CAPTURE` and `SentrySymfonyEvents::SET_USER_CONTEXT` events (#47) to customize event capturing information
55
- Make SkipCapture work on console exceptions too
6+
- Make listeners' priority customizable through the new `listener_priorities` configuration key
67

78
0.7.1
89
-----

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,19 @@ sentry:
130130
error_types: E_ALL & ~E_DEPRECATED & ~E_NOTICE
131131
```
132132
133+
### Listeners' priority
134+
135+
You can change the priority of the 3 default listeners of this bundle with the `listener_priorities` key of your config.
136+
The default value is `0`, and here are the 3 possible sub-keys:
137+
138+
```yaml
139+
listener_priorities:
140+
request: 0
141+
kernel_exception: 0
142+
console_exception: 0
143+
```
144+
145+
... respectively for the `onKernelRequest`, `onKernelException` and `onConsoleException` events.
133146

134147
## Customization
135148

0 commit comments

Comments
 (0)