EventModule
Less than 1 minute
EventModule
Console commands for triggering Warlock events.
class EventModule extends \Hazaar\Console\ModuleExtends: Hazaar\Console\Module
Methods
configure
Registers event CLI commands and options.
public configure(): voidReturns: void
triggerEvent
Triggers an event on the Warlock server.
public triggerEvent(Input $input, Output $output): intReturns: int
The trigger is followed by a ping so that a rejection (e.g. the user isn't allowed to trigger the event), which the server reports with an ERROR packet, arrives before the PONG and can be reported as a failure.
Parameters
| Parameter | Type | Description |
|---|---|---|
$input | Hazaar\Console\Input | Console input containing event name and optional payload |
$output | Hazaar\Console\Output | Console output used to display status messages |
Generated by Hazaar API Doc Generator on Wed, 28 Oct 2026 08:43:32 +0000