本文共 680 字,大约阅读时间需要 2 分钟。
原文出处:
原文作者:
授权许可:
翻译人员:FireHare
校对人员:
适用版本:FOSCommentBundle 2.0.5
文章状态:草译阶段
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 的缺省格式。
When you're done. Continue with the final step: enabling the comments on a page:
当您已经完成,继续最后一步:在页面中启用评论:.
第4步:在页面中启用评论。
转载地址:http://ulqll.baihongyu.com/