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