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 20
static void add(string $name, array $value)

Add a server entry to the registry.

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 29
static mixed get(string $name, mixed $default = null)

Get a server entry by name.

Parameters

string $name
mixed $default

Return Value

mixed

at line 37
static bool has(string $name)

Determine if a server entry exists.

Parameters

string $name

Return Value

bool

at line 45
static array list()

Get all registered server entries.

Return Value

array

at line 53
static void flushState()

Flush all static state.

Return Value

void