this https://github.com/ZF-Commons/zfc-rbac/blob/develop/src/Role/RoleInterface.php#L33 method with doctrine a bit hard to use I have to add identity entity with roles many to many associations then add role with many to many for permissions and even then have to convert permission entities to string because now we no longer support PermissionInterface that's not so good for performance and also hard to cache.
Permissions do not change often because if I add a new permission that's probably because of a new feature.
So I would like to get roles from the repository but permissions from config or something like memory provider. Is this good idea? Maybe someone has a better suggestion?
this https://github.com/ZF-Commons/zfc-rbac/blob/develop/src/Role/RoleInterface.php#L33 method with doctrine a bit hard to use I have to add identity entity with roles many to many associations then add role with many to many for permissions and even then have to convert permission entities to string because now we no longer support PermissionInterface that's not so good for performance and also hard to cache. Permissions do not change often because if I add a new permission that's probably because of a new feature.
So I would like to get roles from the repository but permissions from config or something like memory provider. Is this good idea? Maybe someone has a better suggestion?