原文作者:FriendsOfSymfony
授权许可:创作共用协议
翻译人员:FireHare
校对人员:
适用版本:FOSCommentBundle 2.0.5
文章状态:草译阶段
Step 3: Import FOSCommentBundle routing
Import the bundle routing:
导入功能包路由:
fos_comment_api: type: rest resource: "@FOSCommentBundle/Resources/config/routing.yml" prefix: /api defaults: { _format: html }
Note:
注意:
The
type: rest
part is important.
type: rest部分是重要的。
Note:
注意:
The defaults configuration may not be necessary unless you have changed FOSRestBundle's default format.
defaults 配置项也许没必要,除非您已经改变了 FOSRestBundle 的缺省格式。
Continue to the next step! (final!)(继续最后一步)
When you're done. Continue with the final step: enabling the comments on a page:
当您已经完成,继续最后一步:在页面中启用评论:
Step 4: Enable comments on a page.
第4步:在页面中启用评论。
转载于:https://blog.51cto.com/firehare/1257647