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 (9 loc) · 400 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 400 Bytes

EventBus Component

Provides event bus and event listeners abstractions.

The component provides interfaces for an event bus and event listeners, but also an implementation of a simple event bus and an event bus that will record published events (useful for testing).

$eventBus = new SimpleEventBus();
$eventBus->subscribe(new ExampleListener());

$eventBus->publish(new SomeEvent());