Event dispatching with DI resolution. Basically Evenement that can resolve listeners from DI container.
See: Evenement and Aura\DI provider
<?php
$resolver = function ($spec) use ($di) {
return $di->get($spec);
};
$emitter = new Jnjxp\Event\Emitter($resolver);
$emitter->on('foo', Listener::class);
$emitter->emit('foo', $params);