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 @@ -139,10 +139,12 @@ that defines one or more methods that listen to one or various events. The main
139
139
difference with the event listeners is that subscribers always know which events
140
140
they are listening to.
141
141
142
- In a given subscriber, different methods can listen to the same event. The order
143
- in which methods are executed is defined by the ``priority `` parameter of each
144
- method (the higher the number the earlier the method is called). To learn more
145
- about event subscribers, read :doc: `/components/event_dispatcher `.
142
+ If different event subscriber methods listen to the same event, their order is
143
+ defined by the ``priority `` parameter. This value is a positive or negative
144
+ integer which defaults to ``0 ``. The higher the number, the earlier the method
145
+ is called. **Priority is aggregated for all listeners and subscribers **, so your
146
+ methods could be executed before or after the methods defined in other listeners
147
+ and subscribers. To learn more about event subscribers, read :doc: `/components/event_dispatcher `.
146
148
147
149
The following example shows an event subscriber that defines several methods which
148
150
listen to the same ``kernel.exception `` event::
You can’t perform that action at this time.
0 commit comments