bermudaphp/eventor

v1.2 2022-02-26 17:58 UTC

This package is auto-updated.

Last update: 2022-10-27 16:48:17 UTC


README

composer require bermudaphp/eventor

Usage

$provider = new Provider\Provider;

$provider->listen(MyEvent::class, $firstListener);
$provider->listen(MyEvent::class, $secondListener);

$event = (new EventDispatcher($provider))->dispatch(new MyEvent);