Repository navigation
Internals Event Interfaces IEvent
Framework Internals · Subsystem overview · Developer guide
Source: awt_src/classes/event/interfaces/IEvent.php · Snapshot 8411f4287706.
The request-wide event dispatcher calls listeners synchronously in registration order and collects their arrays. Listener exceptions propagate.
interface IEventSource description (behavioral corrections are recorded in Known discrepancies):
Interface IEvent
The IEvent interface defines the structure for event objects within the event-driven architecture. It specifies the methods that any event class must implement to be used with the event system.
No own constants, enum cases, traits or property declarations. Inherited members are documented on the parent reference page.
| Method | Signature |
|---|---|
| getName | public function getName(): string |
| bundle | public function bundle(): array |
public function getName(): string;Retrieves the name of the event.
This method returns the unique name of the event, which can be used to identify the event when it is dispatched or listened to.
@return string The name of the event.
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function bundle(): array;Returns an array of event data.
This method returns an associative array containing any relevant data associated with the event. This data can be used by listeners to process the event accordingly.
@return array An array of event-related data.
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