diff --git a/components/event_dispatcher.rst b/components/event_dispatcher.rst index 98392126348..fbb07306069 100644 --- a/components/event_dispatcher.rst +++ b/components/event_dispatcher.rst @@ -303,7 +303,7 @@ each listener of that event:: // creates the OrderPlacedEvent and dispatches it $event = new OrderPlacedEvent($order); - $dispatcher->dispatch(OrderPlacedEvent::NAME, $event); + $dispatcher->dispatch($event, OrderPlacedEvent::NAME); Notice that the special ``OrderPlacedEvent`` object is created and passed to the ``dispatch()`` method. Now, any listener to the ``order.placed``