class ServerManager

Properties

static protected array $container

Methods

static void
add(string $name, array $value)

Add a server entry to the registry.

static mixed
get(string $name, mixed $default = null)

Get a server entry by name.

static bool
has(string $name)

Determine if a server entry exists.

static array
list()

Get all registered server entries.

static void
flushState()

Flush all static state.

Details

at line 18
static void add(string $name, array $value)

Add a server entry to the registry.

Boot-only. The registry is process-wide static state populated during server boot (before fork); runtime use mutates state shared across every coroutine in the worker.

Parameters

string $name
array $value

Return Value

void

at line 26
static mixed get(string $name, mixed $default = null)

Get a server entry by name.

Parameters

string $name
mixed $default

Return Value

mixed

at line 34
static bool has(string $name)

Determine if a server entry exists.

Parameters

string $name

Return Value

bool

at line 42
static array list()

Get all registered server entries.

Return Value

array

at line 50
static void flushState()

Flush all static state.

Return Value

void