Bhanu Krishnan
Bhanu Krishnan

Reputation: 3726

sfguard bundle for symfony2

There is a bundle for (Propel) for symfony2,is there sfguard bundle for symfony2

Upvotes: 5

Views: 3382

Answers (4)

Gianluca Lodigiani
Gianluca Lodigiani

Reputation: 541

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.

$ php app/console fos:user:promote testuser ROLE_ADMIN

You can found more about how store role on the data source at this link http://blog.jmoz.co.uk/symfony2-fosuserbundle-roles

Upvotes: 1

William Durand
William Durand

Reputation: 5519

The FOSUserBundle does the job and it's fully compatible with Propel. Note the official bundle for Propel is the PropelBundle.

William

Upvotes: 2

Steven Mercatante
Steven Mercatante

Reputation: 25295

There's no sfGuard bundle (yet), but have you checked out FOSUserBundle? I actually like it better than sfGuard.

Upvotes: 10

user899955
user899955

Reputation:

sfGuard Bundle for symfony2 is not available yet.

Upvotes: 1

Related Questions