Symfony4 - 404 与供应商捆绑路线

Symfony4 - 404 with routes of vendors bundles

我正在 docker 容器中测试 Symfony 4。

默认的 symfony 应用程序运行良好,但我在路由方面遇到了一些问题 我已经安装了 profiler 和 easyAdmin,但这些包的路由似乎在我的情况下不起作用。

但是,当命令 php bin/console debug:router return 时:

admin 或 profiler url 都没有工作,都是 404

谢谢,

问题似乎出在 public 文件夹中缺少 .htaccess 文件。

我copy/paste并从symfony 3.4 adpat,主要是用index

替换app_