【发布时间】:2023-03-07 18:05:01
【问题描述】:
我正在一个 docker 容器中测试 Symfony 4。
默认的 symfony 应用运行良好,但我在路由方面遇到了一些问题 我已经安装了 profiler 和 easyAdmin,但似乎这些包的路由在我的情况下是有效的。
但是,当命令 php bin/console debug:router 返回时:
admin 或 profiler url 都不起作用,都是 404
谢谢,
【问题讨论】:
-
- 我的公用文件夹中没有 .htaccess。 - 错误似乎是 apache 发送的,而不是 symfony 发送的,但 symfony favicon 在这里。