src/Server.php
function route(string $name) {
        if (self::$_status > self::_STATUS_STARTING) {
            Console::warning('Cannot bind route once the service is started.');
            return;
        }
        if (isset($this->_router))
            Console::warning("Overwriting router binding for app \"$this->_name\"");
        $this->_router = Router::instance($name);
    }
function route(string $name) {
        if (self::$_status > self::_STATUS_STARTING) {
            Console::warning('Cannot bind route once the service is started.');
            return;
        }
        if (isset($this->_router))
            Console::warning("Overwriting router binding for app \"$this->_name\"");
        $this->_router = Router::instance($name);
    }
绑定路由实例

@param string $name