Documentation

RoleHierarchy
in package
implements RoleHierarchyInterface

RoleHierarchy defines a role hierarchy.

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

Interfaces

RoleHierarchyInterface
RoleHierarchyInterface is the interface for a role hierarchy.

Properties

$map  : array<string, array<int, string>>
$hierarchy  : array<string|int, mixed>

Methods

__construct()  : mixed
getReachableRoleNames()  : array<string|int, string>
buildRoleMap()  : mixed

Properties

Methods

__construct()

public __construct(array<string, array<int, string>> $hierarchy) : mixed
Parameters
$hierarchy : array<string, array<int, string>>

getReachableRoleNames()

public getReachableRoleNames(array<string|int, mixed> $roles) : array<string|int, string>
Parameters
$roles : array<string|int, mixed>
Return values
array<string|int, string>

        
On this page

Search results