Skip to content

Commit 95b05f6

Browse files
Update event_dispatcher.rst
1 parent 00ac7bc commit 95b05f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/event_dispatcher.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ of the event to dispatch::
348348
// creates the OrderPlacedEvent and dispatches it
349349
$event = new OrderPlacedEvent($order);
350350
$dispatcher->dispatch($event, OrderPlacedEvent::NAME);
351-
// note that ``OrderPlacedEvent::NAME`` is optional, read below
351+
// note that ``OrderPlacedEvent::NAME`` is optional, read more below
352352

353353
Notice that the special ``OrderPlacedEvent`` object is created and passed to
354354
the ``dispatch()`` method. Now, any listener to the ``order.placed``
@@ -392,8 +392,8 @@ Take the following example of a subscriber that subscribes to the
392392
['onKernelResponsePost', -10],
393393
],
394394
OrderPlacedEvent::NAME => 'onStoreOrder',
395-
// note that you can also subscribe like this
396-
// when passing only the event
395+
// you can also subscribe this way if you pass only
396+
// the event object
397397
OrderPlacedEvent::class => 'onStoreOrder',
398398
];
399399
}

0 commit comments

Comments
 (0)