Skip to content

Commit 934a540

Browse files
shieldoweaverryan
authored andcommitted
add clarification clause for how event listener priority affects trigger order
1 parent d98e50d commit 934a540

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

components/event_dispatcher/introduction.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,11 @@ The ``addListener()`` method takes up to three arguments:
143143
* A PHP callable that will be notified when an event is thrown that it listens
144144
to;
145145

146-
* An optional priority integer (higher equals more important) that determines
147-
when a listener is triggered versus other listeners (defaults to ``0``). If
148-
two listeners have the same priority, they are executed in the order that
149-
they were added to the dispatcher.
146+
* An optional priority integer (higher equals more important, and therefore
147+
that the listener will be triggered earlier) that determines when a listener
148+
is triggered versus other listeners (defaults to ``0``). If two listeners
149+
have the same priority, they are executed in the order that they were added
150+
to the dispatcher.
150151

151152
.. note::
152153

0 commit comments

Comments
 (0)