Integrating FOSUserBundle into the admin area
So far, we created a login system using FOSUserBundle
and an entity manager area via SonataAdminBundle
. So, the application has an admin area that has its access limits set to ROLE_ADMIN
people only. Before creating a dashboard for users so that they can manage their workspaces, projects, tasks, and team members, there is one last important thing that needs to be done. An admin should be able to manage all users from the backend.
The Sonata project comes with a bundle that integrates FOSUserBundle
into the admin area. It is called SonataUserBundle
that basically adds some features to FOSUserBundle
and makes it part of the backend.
Installing SonataUserBundle
Start by downloading and installing it:
$ composer ...
Get Mastering Symfony now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.