ServerManager
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.
at line 29
static mixed
get(string $name, mixed $default = null)
Get a server entry by name.
at line 37
static bool
has(string $name)
Determine if a server entry exists.
at line 45
static array
list()
Get all registered server entries.
at line 53
static void
flushState()
Flush all static state.