You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation of Role only support flat roles.
Hierarchical roles is implemented by HierarchicalRole. InMemoryRoleProvider and ObjectRepositoryRoleProvider use hierarchical roles.
Laminas' role is a hierarchical role.
Therefore, hierarchical role should be the "default". Flat role is just a hierachical role with no children.
Proposal:
Have Role support hierarchical role which makes it more like Laminas'
Extend RoleInterface to include hasChildren and getChildren
Have HierarchicalRole extend Role and mark it as deprecated
Have HierarchicalRoleInterface extend RoleInterface and mark it as deprecated.
The text was updated successfully, but these errors were encountered:
The current implementation of
Role
only support flat roles.Hierarchical roles is implemented by
HierarchicalRole
.InMemoryRoleProvider
andObjectRepositoryRoleProvider
use hierarchical roles.Laminas' role is a hierarchical role.
Therefore, hierarchical role should be the "default". Flat role is just a hierachical role with no children.
Proposal:
Role
support hierarchical role which makes it more like Laminas'RoleInterface
to includehasChildren
andgetChildren
HierarchicalRole
extendRole
and mark it as deprecatedHierarchicalRoleInterface
extendRoleInterface
and mark it as deprecated.The text was updated successfully, but these errors were encountered: