国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

console命令行獲取所有路由是空數(shù)組Route::getRoutes()

Tinywan
protected function execute(InputInterface $input, OutputInterface $output)
{
    $output->writeln('Route列表:');
    $routeList = Route::getRoutes();
    var_dump($routeList);
}

2129 3 0
3個回答

walkor 打賞

webman/console 支持了打印路由列表功能。
./webman route:list

  • ExecPHP 2022-01-10

    and where to get webman/console? I don't have the ./webman file

  • walkor 2022-01-10

    Run command composer require webman/console.
    This command requires workerman/webman>=1.2.2 and workerman/webman-framework>=1.2.1

  • ExecPHP 2022-01-10

    Thanks!

Tinywan

使用不了,報(bào)錯 There are no commands defined in the "group" namespace.

截圖

使用 ./webman route:list

截圖

  • walkor 2022-01-10

    是不是本地項(xiàng)目和線上哪里不一致?
    創(chuàng)建新項(xiàng)目composer create-project workerman/webman 然后試下

  • Tinywan 2022-01-10

    我本地代碼和weban官方的更新成完全一致了,還是不行,不知道怎么回事?哈哈

  • walkor 2022-01-10

    我知道怎么回事了,等下我修復(fù)下

  • Tinywan 2022-01-10

    好的

  • walkor 2022-01-10

    好了,更新到 workerman/webman v1.2.2 workerman/webman-framework v1.2.1

  • Tinywan 2022-01-10

    謝謝,可以啦!

Tinywan

可以啦

截圖

  • 暫無評論
年代過于久遠(yuǎn),無法發(fā)表回答
??