Symfony\Component\Security\Core\Role\RoleHierarchyInterface::getReachableRoles
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.
Signature
public function getReachableRoles(array
$roles )
Parameters
$roles
— array- An array of directly assigned roles
Returns
- array
- An array of all reachable roles