Use the dispatcher interface

Joomla\Event\Dispatcher implements the interface and this makes things more flexible.

I've also changed the method from trigger (something that isn't in the Dispatcher class) to triggerEvent() which is the main interface method