Use EventDispatcherInterface instead of EventDispatcher.