I have recently been using Symfony to develop the management backend. After reading the official documents, I still have some questions in my mind?
Don’t know how to use Symfony to develop role-based permission management?
I hope the experts can give some tips?
In previous solutions, we usually define tables such as User, Role, UserRole, Permission, RolePermisson?
When using Symfony to solve permission problems, is this definition still needed?
Also, I currently use MongoDB for the database layer. Are there any suggestions for optimizing the table structure when dealing with user role permissions?
Generally, there is no need to develop, just use it directly
Or higher-level packaged background components are enough. No need to write anything.
There is actually an official case for your problem, you can solve it using ACL
http://symfony.com/doc/current/cookbook/security/acl.html
Generally, there is no need to develop, just use it directly
http://symfony.com/doc/current/bundles/FOSUserBundle/index.html