rollerworks/multi-user-bundle
RollerworksMultiUserBundle lets Symfony applications support multiple user types side by side, each with its own entity, user provider, firewall/login form, and registration flow, simplifying multi-tenant or multi-role authentication without duplicating security setup.
DependencyInjection/Configuration.php for the config tree, Resources/config/*.xml for service IDs, and the bundle’s user-discriminator/profile services. Read FOSUserBundle’s docs too, because most behavior is inherited from it.composer.json before requiring rollerworks/multi-user-bundle. Avoid broad composer update; this package’s constraints are from the Symfony 2 era.customer and admin, each with its own firewall, user class, registration/login routes, forms, and templates.config:dump-reference rollerworks_multi_user, debug:router, and debug:container early. They reveal the actual profile service IDs, route names, and firewall mappings.User entity with a discriminator column and subclasses per profile. The bundle’s discriminator field must be persisted, non-null, and immutable after creation.access_control rules by URL prefix, and avoid sharing a security context between profiles that use different user classes.debug:router.debug:container to find the real IDs.context values per firewall. Sharing remember-me/session context between profiles can authenticate a customer as an admin or silently fail token refresh.debug:event-dispatcher, and the user-discriminator service state. Reproduce failures with one firewall at a time.How can I help you explore Laravel packages today?