class RoleHierarchy implements RoleHierarchyInterface

Class RoleHierarchy is injected as all.user.access.role_hierarchy

Properties

protected array $tree

Methods

__construct(EntityManager $em)

No description

array
getTree()

No description

getReachableRoles(array $roles)

{@inheritdoc}

buildTree(array $node)

Recursive processing of each nested set node.

getReachableChilds(string $role, array $auth)

Recursive collection of authorized roles.

Details

at line 31
__construct(EntityManager $em)

Parameters

EntityManager $em

at line 51
array getTree()

Return Value

array

at line 59
getReachableRoles(array $roles)

{@inheritdoc}

Parameters

array $roles

at line 75
protected buildTree(array $node)

Recursive processing of each nested set node.

Parameters

array $node

at line 94
protected getReachableChilds(string $role, array $auth)

Recursive collection of authorized roles.

Parameters

string $role
array $auth