File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -145,10 +145,12 @@ that defines one or more methods that listen to one or various events. The main
145
145
difference with the event listeners is that subscribers always know which events
146
146
they are listening to.
147
147
148
- In a given subscriber, different methods can listen to the same event. The order
149
- in which methods are executed is defined by the ``priority `` parameter of each
150
- method (the higher the number the earlier the method is called). To learn more
151
- about event subscribers, read :doc: `/components/event_dispatcher `.
148
+ If different event subscriber methods listen to the same event, their order is
149
+ defined by the ``priority `` parameter. This value is a positive or negative
150
+ integer which defaults to ``0 ``. The higher the number, the earlier the method
151
+ is called. **Priority is aggregated for all listeners and subscribers **, so your
152
+ methods could be executed before or after the methods defined in other listeners
153
+ and subscribers. To learn more about event subscribers, read :doc: `/components/event_dispatcher `.
152
154
153
155
The following example shows an event subscriber that defines several methods which
154
156
listen to the same ``kernel.exception `` event::
You can’t perform that action at this time.
0 commit comments