FOSUserBundle icon indicating copy to clipboard operation
FOSUserBundle copied to clipboard

Should provide a User class without group features

Open jillro opened this issue 11 years ago • 3 comments

Many people use FOSUserBundle to manage users but need to implement their own logic for groups.

In this case, is rather annoying to have to respect GroupableInterface 's method signatures like addGroup(GroupInterface $group) when you extends FOS's User base class an override those methods. It is specially the case when groups are not used to manage roles and you do not want them to implement FOS's GroupInterface. You can use other methods names to avoid this, but it become rather confusing since addGroup won't be the real method used to add a User to a Group....

FOSUserBundle should provide an alternative base User class without group features or at least remove type hinting from GroupableInterface.

jillro avatar Oct 03 '13 19:10 jillro