diff --git a/manual/en/events.txt b/manual/en/events.txt index 264c361d1..782f87f83 100644 --- a/manual/en/events.txt +++ b/manual/en/events.txt @@ -82,7 +82,7 @@ method which returns an array of events it should be subscribed to. Now when you dispatch an event any event subscribers will be notified for that event. [php] - $evm->dispatchEvent(TestEventSubscriber::preFoo); + $evm->dispatchEvent(TestEvent::preFoo); Now you can test the `$eventSubscriber` instance to see if the `preFoo()` method was invoked.