Change of scope
When overriding the Symfony RoleHierarchy it would be great to be able to get access to the buildRoleMap-method and map-variable for more advanced usage.
This commit is contained in:
parent
5079f3478b
commit
335bee2fb4
@ -19,7 +19,7 @@ namespace Symfony\Component\Security\Core\Role;
|
||||
class RoleHierarchy implements RoleHierarchyInterface
|
||||
{
|
||||
private $hierarchy;
|
||||
private $map;
|
||||
protected $map;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
@ -56,7 +56,7 @@ class RoleHierarchy implements RoleHierarchyInterface
|
||||
return $reachableRoles;
|
||||
}
|
||||
|
||||
private function buildRoleMap()
|
||||
protected function buildRoleMap()
|
||||
{
|
||||
$this->map = array();
|
||||
foreach ($this->hierarchy as $main => $roles) {
|
||||
|
Reference in New Issue
Block a user