RoleHierarchy

RoleHierarchy

class RoleHierarchy implements RoleHierarchyInterface

RoleHierarchy defines a role hierarchy.

Methods

__construct(array $hierarchy)

Constructor.

RoleInterface[] getReachableRoles(array $roles)

Returns an array of all reachable roles by the given ones.

Details

__construct(array $hierar