config; $paths = explode('.', $uri); while (!empty($paths)) { $path = array_shift($paths); if (!isset($node[$path])) { return null; } $node = $node[$path]; } return $node; } public static function getAllWorkers() { $copy = self::$config; unset($copy['workerman']); return $copy; } public static function reload() { self::$instances = array(); } }