Config
About 1 min
Config
Properties
defaultConfig
private array $defaultConfig = array (
'sys' =>
array (
'id' => NULL,
0 => NULL,
'IDFile' => 'server.id',
'applicationName' => 'hazaar',
1 => NULL,
'autostart' => false,
2 => NULL,
'pid' => 'server.pid',
3 => NULL,
'cleanup' => true,
4 => NULL,
'timezone' => 'UTC',
5 => NULL,
'phpBinary' => NULL,
6 => NULL,
'dateFormat' => 'c',
'runtimePath' => '%RUNTIME_PATH%%DIRECTORY_SEPARATOR%warlock',
),
'server' =>
array (
'listen' => '127.0.0.1',
0 => NULL,
'port' => 8000,
1 => NULL,
'encoded' => false,
'win_bg' => false,
'announce' => false,
),
'kvstore' =>
array (
'enabled' => false,
0 => NULL,
'persist' => false,
1 => NULL,
'namespace' => 'default',
2 => NULL,
'compact' => 0,
3 => NULL,
),
'client' =>
array (
'applicationName' => NULL,
0 => NULL,
'connect' => true,
1 => NULL,
'server' => NULL,
2 => NULL,
3 => NULL,
'port' => NULL,
4 => NULL,
5 => NULL,
6 => NULL,
'encoded' => false,
),
'webClient' =>
array (
'applicationName' => NULL,
'server' => NULL,
'port' => NULL,
'ssl' => false,
0 => NULL,
'websockets' => true,
1 => NULL,
'url' => NULL,
2 => NULL,
3 => NULL,
'check' => 60,
4 => NULL,
'pingWait' => 5,
5 => NULL,
'pingCount' => 3,
6 => NULL,
'reconnect' => true,
7 => NULL,
'reconnectDelay' => 0,
'reconnectRetries' => 0,
'encoded' => NULL,
),
'timeouts' =>
array (
'startup' => 1000,
0 => NULL,
'connect' => 5,
1 => NULL,
),
'admin' =>
array (
'trigger' => 'warlockadmintrigger',
0 => NULL,
'key' => '0000',
1 => NULL,
),
'log' =>
array (
'rrd' => 'server.rrd',
0 => NULL,
'level' => 'W_ERR',
1 => NULL,
'file' => 'server.log',
2 => NULL,
'error' => 'server-error.log',
3 => NULL,
'rotate' => false,
4 => NULL,
'logfiles' => 7,
5 => NULL,
'rotateAt' => '0 0 * * *',
6 => NULL,
),
'task' =>
array (
'retries' => 3,
0 => NULL,
'retry' => 10,
1 => NULL,
'expire' => 10,
2 => NULL,
'boot_delay' => 5,
3 => NULL,
),
'process' =>
array (
'timeout' => 30,
0 => NULL,
'limit' => 5,
1 => NULL,
'exitWait' => 30,
2 => NULL,
),
'service' =>
array (
'restarts' => 5,
0 => NULL,
'disable' => 300,
1 => NULL,
),
'event' =>
array (
'queueTimeout' => 5,
0 => NULL,
1 => NULL,
2 => NULL,
),
'cluster' =>
array (
'enabled' => true,
'name' => 'warlock',
'accessKey' => NULL,
'peers' =>
array (
),
),
)
Methods
__construct
public __construct(array $config = [], ?string $env = 'APPLICATION_ENV'): void
Parameters
Parameter | Type | Description |
---|---|---|
$config | array | |
$env | string |
generateSystemID
public generateSystemID(string $path): string
Parameters
Parameter | Type | Description |
---|---|---|
$path | string |
loadSystemID
private loadSystemID(): string
Generated by Hazaar API Doc Generator