Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit934a540

Browse files
shieldoweaverryan
authored andcommitted
add clarification clause for how event listener priority affects trigger order
1 parentd98e50d commit934a540

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)

[8]ページ先頭

©2009-2025 Movatter.jp