ServerModule
Less than 1 minute
ServerModule
Console commands for managing the Warlock server process.
class ServerModule extends \Hazaar\Warlock\Console\ModuleProperties
warlock
Server runtime instance configured during command preparation.
private Main $warlockMethods
configure
Registers server CLI commands and options.
public configure(): voidprepare
Initializes server runtime dependencies before command execution.
protected prepare(Input $input, Output $output): intParameters
| Parameter | Type | Description |
|---|---|---|
$input | Input | |
$output | Output |
startServer
Starts the Warlock server in foreground or daemon mode.
protected startServer(Input $input, Output $output): intParameters
| Parameter | Type | Description |
|---|---|---|
$input | Input | |
$output | Output |
stopServer
Stops a running Warlock server process.
protected stopServer(Input $input, Output $output): intParameters
| Parameter | Type | Description |
|---|---|---|
$input | Input | |
$output | Output |
restartServer
Restarts the Warlock server by stopping and starting in daemon mode.
protected restartServer(Input $input, Output $output): intParameters
| Parameter | Type | Description |
|---|---|---|
$input | Input | |
$output | Output |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:25 +0000