Repository navigation
Internals Event Interfaces IEventListener
Framework Internals · Subsystem overview · Developer guide
Source: awt_src/classes/event/interfaces/IEventListener.php · Snapshot 8411f4287706.
The request-wide event dispatcher calls listeners synchronously in registration order and collects their arrays. Listener exceptions propagate.
interface IEventListenerSource description (behavioral corrections are recorded in Known discrepancies):
Interface IEventListener
The IEventListener interface defines the contract for event listener classes
that handle specific events in the event-driven architecture. Any class
implementing this interface must provide an implementation for the
handle method to process incoming events.
No own constants, enum cases, traits or property declarations. Inherited members are documented on the parent reference page.
| Method | Signature |
|---|---|
| handle | public function handle(IEvent $event): array |
public function handle(IEvent $event): array;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$event |
IEvent $event |
The event to handle. |
Handles the specified event.
This method is called when an event is dispatched. It receives an instance of IEvent, allowing the listener to process the event and perform any necessary actions based on the event data.
@param IEvent $event The event to handle. @return array An array of results or responses from the event handling.
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
AWT Framework Wiki · Home · Installation Guide · Developer Guide · Framework Internals
Philosophy · Architecture · Known discrepancies · Verification
Installation Guide
Developer Guide
- Learning sequence
- First package
- Package structure
- Lifecycle
- Runtimes
- Events and objects
- Routing and controllers
- Views and resources
- Database and models
- Storage and caching
- Configuration and CLI
- Responses and errors
- Extension points
Framework Internals
- Architecture
- Bootstrap
- Packages
- Runtime
- Events and context
- Objects
- HTTP routing and controllers
- Rendering
- Blade integration
- Database
- Models
- Storage and caching
- Settings
- CLI
- Identity and sessions
- Responses
- Errors
- Complete source inventory
Documentation notes