OldConfig
Less than 1 minute
OldConfig
Properties
defaultConfig
private array $defaultConfig = array (
'server' =>
array (
'id' => 1,
'listenAddress' => '0.0.0.0',
'port' => 13080,
'encode' => false,
'phpBinary' => 'PHP_BINARY',
'log' =>
array (
'level' => 'debug',
),
'timezone' => 'UTC',
'client' =>
array (
'check' => 60,
),
'event' =>
array (
'cleanup' => true,
'timeout' => 5,
0 => NULL,
1 => NULL,
2 => NULL,
),
'agent' => false,
0 => NULL,
),
'cluster' =>
array (
'enabled' => false,
'name' => 'warlock',
'accessKey' => NULL,
'peers' =>
array (
),
),
'client' =>
array (
),
'agent' =>
array (
'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,
),
),
'kvstore' =>
array (
'enabled' => false,
0 => NULL,
'persist' => false,
1 => NULL,
'namespace' => 'default',
2 => NULL,
'compact' => 0,
3 => NULL,
),
)
Methods
__construct
public __construct(string $configFile = 'warlock', array $config, ?string $env = 'APPLICATION_ENV'): void
Parameters
Parameter | Type | Description |
---|---|---|
$configFile | string | |
$config | array | |
$env | string |
loadServerID
private loadServerID(): string
Generated by Hazaar API Doc Generator on Wed, 25 Jun 2025 06:07:11 +0000