我正在按照升级指南将 Lumen 应用程序安装到最新版本。直到 5.4 的步骤以下列方式中断路由。
有一条路线/oauth/test
。
它现在导致 404(在 5.3 上很好):
http://testcase.local/oauth/test
如果双重嵌套路由,它会起作用,如下所示:
http://testcase.local/oauth/oauth/test
它稍微复杂一点,因为应用程序的前端(单页 JS)在 apache 后面提供,并且基于后端的路由是符号链接的。但是,apache 配置正确(FollowSymLinks)并且配置在 5.3 中运行良好.
路线正确列出php artisan route:list
5.4 中发生了什么改变来打破这个问题,我该如何解决?
编辑:原因是对 Lumen的承诺。
所以 symfony/http-foundation 处理这个用例的基于符号链接的路径中断的方式。