Note:

This bundle ships with support different security setups. You can also have a look at Adding role based ACL security.

To use the built in Acl system, it must first be initialised with the Symfony2 console:

$app/console init:acl Additionally, your configuration needs to be modified to add the right managers: 另外，您的配置需要添加权限管理器： # app/config/config.yml fos_comment: acl: true service: manager: thread: fos_comment.manager.thread.acl comment: fos_comment.manager.comment.acl vote: fos_comment.manager.vote.acl Note: 注意： Note: you must enable the Security Acl component:: 注意您必须启用安全ACL组件 # app/config/security.yml security: # ... acl: connection: default Finally, you must populate the Acl system with entries that may not be there yet by running: 最终，您必须通过运行下列语句来填充ACL系统可能不存在的条目： $ app/console fos:comment:installAces

This will make sure that the Acl entries in the database are correct. This comment must be run whenever any configuration for security changes in FOSCommentBundle,including enabling the security features or changing the FQCN of your extended FOSCommentBundle objects.