FosMessageBundle:寻找创建新消息的路由


FosMessageBundle: finding route for creating a new message

我已安装FOSMessageBundle。我认为我的安装是正确的。doctrine:generate:entities没有错误,doctrine:schema:update也没有错误。

我看到在resources/routing.xml中有这样的路由:

<route id="fos_message_thread_new" path="/new">
    <default key="_controller">FOSMessageBundle:Message:newThread</default>
</route>

我的问题是我不知道如何运行这条路线…

我试着:

http://localhost/mySuperProject/web/app_dev.php/new
http://localhost/mySuperProject/web/app_dev.php/new/thread
http://localhost/mySuperProject/web/app_dev.php/thread/new
http://localhost/mySuperProject/web/app_dev.php/thread

我也尝试运行相同的路由,将url中的"线程"替换为"消息",但没有找到路由

请帮忙好吗?

也许可以尝试使用debug:router命令。它应该会显示路由的详细信息(包括路由的完整路径)。

app/console debug:router fos_message_thread_new