I am familiarizing myself with Symfony 2, after using Symfony 1.x for a few years.
I need to create a membership website that has a custom registration process. Additionally, the website dynamically generates user roles (formerly credentials in SF v1.x) to use to restrict access to portions of the site.
I have had a look at the FOSUserBundle and I can't see what it is offering over and above the code that is available on the 'How to load users from a database' link in the cookbook. I have a lot of custom logic involved in my user registration and user management, as I mentioned earlier, and I don't want to undergo a learning curve of using FOSUserBundle only to have to override a lot of the methods etc, with my own custom methods.
I don't know enough about Symfony2 to make the decision as to whether to learn from the cookbook code and extend it in my own UserBundle, or invest time learning how to use the FOSUserBundle and customize it with my custom logic.
In summary this is what I want to do with users:
- Provide a custom registration workflow
- Dynamically update a users role/group membership (initially during login, and subsequently, during the session).
My question then is - which course requires the minimum learning curve and effort for me (I have less than a week to get a barebones site up and running - and I'm only doing web development in my spare time).
Do I:
- Write my own UserBundle, using the code in the cookbook as a starting point
- Learn how to use FOSUserBundle and customize it with my custom logic? (see above)