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

Commitd0aa1c2

Browse files
committed
minor#10655 Reduce potential confusion in priority explanation (simshaun, javiereguiluz)
This PR was merged into the 2.8 branch.Discussion----------Reduce potential confusion in priority explanationI always get tripped up by event priority. In my mind, I think priority 1 is higher than priority 2. I guess I'm backwards :)This PR should help remove any confusion for myself and others by explicitly stating "priority 3 executes before priority 2" and so on.Commits-------afc8c31 Reworded4da8de0 Reduce potential confusion in priority explanation
2 parents3393377 +afc8c31 commitd0aa1c2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

‎components/event_dispatcher.rst‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +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 (higher equals more important and therefore
151-
that the listener will be triggered earlier) that determines when a listener
152-
is triggered versus other listeners (defaults to ``0``). If two listeners
153-
have the same priority, they are executed in the order that they were
154-
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.
155154

156155
..note::
157156

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp