FOSUserBundle is better than sfGuardUser, it allow to use different data source as ORM (Doctrine), MongoDB/CouchDB ODM or Propel.
Out of the box this Bundle does NOT support database persisted roles, the ACL functionality is allow but only on two level of user: ROLE_USER, and ROLE_ADMIN, this roles can be grant to the user by the command line.
发布评论
评论(4)
目前还没有 sfGuard 捆绑包,但是您查看过 FOSUserBundle 吗?事实上,我比 sfGuard 更喜欢它。
There's no sfGuard bundle (yet), but have you checked out FOSUserBundle? I actually like it better than sfGuard.
FOSUserBundle 可以完成这项工作,并且与 Propel 完全兼容。请注意,Propel 的官方捆绑包是 PropelBundle。
威廉
The FOSUserBundle does the job and it's fully compatible with Propel. Note the official bundle for Propel is the PropelBundle.
William
symfony2 的 sfGuard Bundle 尚不可用。
sfGuard Bundle for symfony2 is not available yet.
FOSUserBundle 比 sfGuardUser 更好,它允许使用不同的数据源,如 ORM (Doctrine)、MongoDB/CouchDB ODM 或 Propel。
开箱即用的此捆绑包不支持数据库持久角色,ACL 功能是允许的,但仅限于两个级别的用户:ROLE_USER 和 ROLE_ADMIN,可以通过命令行将此角色授予用户。
您可以通过此链接 http://blog 找到有关如何在数据源上存储角色的更多信息。 jmoz.co.uk/symfony2-fosuserbundle-roles
FOSUserBundle is better than sfGuardUser, it allow to use different data source as ORM (Doctrine), MongoDB/CouchDB ODM or Propel.
Out of the box this Bundle does NOT support database persisted roles, the ACL functionality is allow but only on two level of user: ROLE_USER, and ROLE_ADMIN, this roles can be grant to the user by the command line.
You can found more about how store role on the data source at this link http://blog.jmoz.co.uk/symfony2-fosuserbundle-roles