Interface

Symfony\Component\Security\Core\Role\RoleHierarchyInterface

interface RoleHierarchyInterface

RoleHierarchyInterface is the interface for a role hierarchy.

Methods

array getReachableRoles(array $roles)

Returns an array of all reachable roles.

Details

at line 31
public array getReachableRoles(array $roles)

Returns an array of all reachable roles.

Reachable roles are the roles directly assigned but also all roles that are transitively reachable from them in the role hierarchy.

Parameters

array $roles An array of directly assigned roles

Return Value

array An array of all reachable roles