@@ -103,11 +103,12 @@ using a special "tag":
103
103
``on `` + "camel-cased event name". If the event is ``kernel.exception `` the
104
104
method executed by default is ``onKernelException() ``.
105
105
106
- The other optional tag attribute is called ``priority `` which defaults to ``0 ``.
107
- This value ranges from ``-255 `` to ``255 `` and it controls the order in which
108
- listeners are executed (the highest the priority, the earlier a listener is
109
- executed). This is useful when you need to guarantee that one listener is
110
- executed before another.
106
+ The other optional tag attribute is called ``priority ``, which defaults to
107
+ ``0 `` and it controls the order in which listeners are executed (the highest
108
+ the priority, the earlier a listener is executed). This is useful when you
109
+ need to guarantee that one listener is executed before another. The priorities
110
+ of the internal Symfony events range from ``-255 `` to ``255 `` but your own
111
+ events can use any positive or negative integer.
111
112
112
113
Creating an Event Subscriber
113
114
----------------------------
@@ -119,7 +120,7 @@ they are listening to.
119
120
120
121
In a given subscriber, different methods can listen to the same event. The order
121
122
in which methods are executed is defined by the ``priority `` parameter of each
122
- method (the higher the priority, the earlier the method is called). To learn more
123
+ method (the higher the priority the earlier the method is called). To learn more
123
124
about event subscribers, read :doc: `/components/event_dispatcher/introduction `.
124
125
125
126
The following example shows an event subscriber that defines several methods which
0 commit comments