AgentModule
Less than 1 minute
AgentModule
Console commands for managing the Warlock agent process.
class AgentModule extends \Hazaar\Console\ModuleExtends: Hazaar\Console\Module
Properties
agent
Agent runtime instance configured during command preparation.
private Main $agentType: Hazaar\Warlock\Agent\Main
Methods
configure
Registers agent CLI commands and options.
public configure(): voidReturns: void
prepare
Resolves app context and initializes the agent before command execution.
protected prepare(Input $input, Output $output): intReturns: int
Parameters
| Parameter | Type | Description |
|---|---|---|
$input | Hazaar\Console\Input | |
$output | Hazaar\Console\Output |
startAgent
Starts the Warlock agent in foreground or daemon mode.
protected startAgent(Input $input, Output $output): intReturns: int
Parameters
| Parameter | Type | Description |
|---|---|---|
$input | Hazaar\Console\Input | |
$output | Hazaar\Console\Output |
stopAgent
Stops a running Warlock agent process.
protected stopAgent(Input $input, Output $output): intReturns: int
Parameters
| Parameter | Type | Description |
|---|---|---|
$input | Hazaar\Console\Input | |
$output | Hazaar\Console\Output |
restartAgent
Restarts the Warlock agent by stopping and starting in daemon mode.
protected restartAgent(Input $input, Output $output): intReturns: int
Parameters
| Parameter | Type | Description |
|---|---|---|
$input | Hazaar\Console\Input | |
$output | Hazaar\Console\Output |
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:18 +0000