class RoleHierarchy implements RoleHierarchyInterface
RoleHierarchy defines a role hierarchy.
__construct(array $hierarchy) Constructor. | ||
RoleInterface[] | getReachableRoles(array $roles) Returns an array of all reachable roles by the given ones. |
Constructor.
Returns an array of all reachable roles by the given ones.
Reachable roles are the roles directly assigned but also all roles that are transitively reachable from them in the role hierarchy.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/Security/Core/Role/RoleHierarchy.html