update examples

This commit is contained in:
Till Krüss
2023-01-17 14:43:40 -08:00
committed by Till Krüss
parent f4bd6d44b1
commit 3c8a811ca3
6 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ class EventsListener implements Countable
}
// Attach our callable class to the dispatcher.
$dispatcher->attachCallback('events', ($events = new EventsListener()));
$dispatcher->attachCallback('events', $events = new EventsListener());
// Attach a function to control the dispatcher loop termination with a message.
$dispatcher->attachCallback('control', function ($payload, $dispatcher) {