src/Server.php
static function start(?callable $callback = null) {
        if (count($_SERVER['argv']) > 1) {
            $name = $_SERVER['argv'][1];
            if (in_array($name, array_keys(Console::$callbacks))) {
                Console::call($name, array_slice($_SERVER['argv'], 2));
                exit(0);
            }
        }
        self::$_status = self::_STATUS_STARTING;
        if (is_callable($callback))
            $callback();
        Worker::runAll();
    }
static function start(?callable $callback = null) {
        if (count($_SERVER['argv']) > 1) {
            $name = $_SERVER['argv'][1];
            if (in_array($name, array_keys(Console::$callbacks))) {
                Console::call($name, array_slice($_SERVER['argv'], 2));
                exit(0);
            }
        }
        self::$_status = self::_STATUS_STARTING;
        if (is_callable($callback))
            $callback();
        Worker::runAll();
    }
启动所有服务

@param callable|null $callback