We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6780017 + facaf80 commit 5a102c8Copy full SHA for 5a102c8
components/event_dispatcher.rst
@@ -277,8 +277,9 @@ Dispatch the Event
277
278
The :method:`Symfony\\Component\\EventDispatcher\\EventDispatcher::dispatch`
279
method notifies all listeners of the given event. It takes two arguments:
280
-the ``Event`` instance to pass to each listener of that event and the name
281
-of the event to dispatch::
+the ``Event`` instance to pass to each listener of that event and optionally the
+name of the event to dispatch. If it's not defined, the class of the ``Event``
282
+instance will be used::
283
284
use Acme\Store\Event\OrderPlacedEvent;
285
use Acme\Store\Order;
0 commit comments