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:
David Joos 2013-10-25 10:58:02 +01:00 committed by Fabien Potencier
parent 5079f3478b
commit 335bee2fb4

View File

@ -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) {