FOSUserBundle multiple user types

I am creating an application in which I have (at least) two different types of users, say, buyers and sellers. Each type of user must have its own logic (registration form / process, profile, rights, ...), but I would like to use FOSUserBundle for each user in order to have common control at some points.

I am actually blocked by registration forms; it happens that I cannot declare different forms in the FOSUserBundle, and after some research this seems impossible. Some of the answers I found suggest using my own registration form, but then

  • How to associate it with FOSUserBundle?

  • Should I populate a user table in controllers / forms? Thus, different users will add the user from the FOSUserBundle, and then I have to manage different forms myself, without extending the FOSUserBundle?

thanks in advance

+7
source share
1 answer

PUGXMultiUserBundle is what you are looking for. It extends FOSUserBundle and allows you to have different registration forms, etc.

+7
source

All Articles