I use FosUserBundle for the login/register actions
I want to have two or more User table as User, BackUser, ...
I need also two different firewalls:
firewalls:
back:
pattern: ^/back
form_login:
provider: fos_BackUser
csrf_provider: form.csrf_provider
login_path: /back/login
check_path: /back/login_check
logout:
path: /back/logout
target: /back
anonymous: true
main:
pattern: ^/
form_login:
provider: fos_User
csrf_provider: form.csrf_provider
logout: true
anonymous: true
But with FosUserBundle I cannot set two differents providers.
I found this on google: https://groups.google.com/group/symfony2/browse_thread/thread/17d3fb94a1e305f8/e5ef7243cd84b558?lnk=raot
the first solution look good for my needs but I cannot make it work.
Any ideas?