routing.yml import when using FOSRestBundle

六月ゝ 毕业季﹏ 提交于 2019-12-06 15:46:48

I just pushed a commit to the repository which should fix this issue. See: https://github.com/nmpolo/Symfony2Rest/commit/d381b0a4652e76d5a4c1576d1afd8fa0e00eb0c1

This was being caused because the FOSRestBundle now requires you to implement ClassResourceInterface in your controllers to use implicit routing. See: https://github.com/FriendsOfSymfony/FOSRestBundle/blob/master/Resources/doc/5-automatic-route-generation_single-restful-controller.md#implicit-resource-name-definition

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!