bermudaphp/eventor

v1.2 2023-06-30 11:29 UTC

This package is auto-updated.

Last update: 2024-11-07 15:01:51 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);