We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在多应用模式下,routePath被改成了应用下的route目录,如下代码:
vendor/topthink/think-multi-app/src/MultiApp.php 82行
return $this->app->getAppPath() . 'route' . DIRECTORY_SEPARATOR; 而在命令执行时,还是取得项目根目录下的route目录,如下代码:
return $this->app->getAppPath() . 'route' . DIRECTORY_SEPARATOR;
vendor/topthink/framework/src/think/console/command/RouteList.php 63行
$path = $this->app->getRootPath() . 'route' . DIRECTORY_SEPARATOR . $dir . DIRECTORY_SEPARATOR; 故,在多应用模式下,命令执行得不到对应路由表
$path = $this->app->getRootPath() . 'route' . DIRECTORY_SEPARATOR . $dir . DIRECTORY_SEPARATOR;
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
在多应用模式下,routePath被改成了应用下的route目录,如下代码:
return $this->app->getAppPath() . 'route' . DIRECTORY_SEPARATOR;
而在命令执行时,还是取得项目根目录下的route目录,如下代码:
$path = $this->app->getRootPath() . 'route' . DIRECTORY_SEPARATOR . $dir . DIRECTORY_SEPARATOR;
故,在多应用模式下,命令执行得不到对应路由表
The text was updated successfully, but these errors were encountered: