src/Console.php
static function register(string $name, callable $callback) {
        if (isset(self::$callbacks[$name]))
            self::warning("Overwriting console callback \"$name\".");
        self::$callbacks[$name] = $callback;
    }
static function register(string $name, callable $callback) {
        if (isset(self::$callbacks[$name]))
            self::warning("Overwriting console callback \"$name\".");
        self::$callbacks[$name] = $callback;
    }
static function register ( string $ name , callable $ callback ) { if ( isset ( self :: $ callbacks [ $ name ] ) ) self :: warning ( "Overwriting console callback \"$name\"." ) ; self :: $ callbacks [ $ name ] = $ callback ; }
注册控制台函数

@param string $name
@param callable $callback
注册控制台函数