src/Router.php
protected function invoke($name = 0, $param = null) {
        $controller = $this->_pCall[self::_CONTROLLER][$name] ?? Controller::$globals[$name];
        if (!isset($controller)) {
            Console::warning("Invalid controller binding \"$name\".");
            return false;
        }
        $class = $controller[0];
        $method = $controller[1];
        $this->_object = new $class($this);
        $ret = $this->_object->$method($param);
        $this->mRet = $this->_object->mRet;
        return $ret;
    }
protected function invoke($name = 0, $param = null) {
        $controller = $this->_pCall[self::_CONTROLLER][$name] ?? Controller::$globals[$name];
        if (!isset($controller)) {
            Console::warning("Invalid controller binding \"$name\".");
            return false;
        }
        $class = $controller[0];
        $method = $controller[1];
        $this->_object = new $class($this);
        $ret = $this->_object->$method($param);
        $this->mRet = $this->_object->mRet;
        return $ret;
    }
调用已注册的控制器中的方法

@param string|int $name
@param mixed $param
@return bool