Skip to content

jnjxp/jnjxp.event

Repository files navigation

jnjxp.event

Event dispatching with DI resolution. Basically Evenement that can resolve listeners from DI container.

Latest version Build Status Coverage Status Quality Score

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);

About

Event dispatching with DI resolution

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages