Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Latest commit

 

History

History
13 lines (10 loc) · 342 Bytes

README.md

File metadata and controls

13 lines (10 loc) · 342 Bytes

Event Dispatcher Component

Event dispatcher component providing event dispatchers to your application.

The component provides an event dispatcher interface and a simple implementation.

$dispatcher = new EventDispatcher();
$dispatcher->addListener(SomeEvent::class, function(SomeEvent $event){
    echo $event->greetings()
});