Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cc47943

Browse files
committed
minor symfony#7581 Update event_dispatcher.rst (atailouloute, javiereguiluz)
This PR was merged into the 2.7 branch. Discussion ---------- Update event_dispatcher.rst I think it's better to say `the event class instance` instead of `the event class`, because when dispatching an event we send an instance of the event class Commits ------- 6613f04 "class instance" -> "object" ca51b87 Update event_dispatcher.rst
2 parents c944891 + 6613f04 commit cc47943

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/event_dispatcher.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ the ``Event`` object as the single argument::
182182
}
183183
}
184184

185-
The ``$event`` argument is the event class that was passed when dispatching the
185+
The ``$event`` argument is the event object that was passed when dispatching the
186186
event. In many cases, a special event subclass is passed with extra
187187
information. You can check the documentation or implementation of each event to
188188
determine which instance is passed.

0 commit comments

Comments
 (0)