Skip to content

Commit afc8c31

Browse files
Reworded
1 parent 4da8de0 commit afc8c31

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

components/event_dispatcher.rst

+4-6
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,10 @@ The ``addListener()`` method takes up to three arguments:
147147

148148
#. The event name (string) that this listener wants to listen to;
149149
#. A PHP callable that will be executed when the specified event is dispatched;
150-
#. An optional priority integer that determines when a listener is triggered
151-
versus other listeners (defaults to ``0``). A higher priority integer means
152-
the listener will be triggered earlier. So, priority 3 executes before
153-
priority 2. Priority 2 executes before priority 1. Priority 1 executes before
154-
priority 0, and so on. If two listeners have the same priority, they are
155-
executed in the order that they were added to the dispatcher.
150+
#. An optional priority, defined as a positive or negative integer (defaults to
151+
``0``). The higher the priority, the earlier the listener is called. If two
152+
listeners have the same priority, they are executed in the order that they
153+
were added to the dispatcher.
156154

157155
.. note::
158156

0 commit comments

Comments
 (0)