diff options
author | David Joos <david.joos@gmail.com> | 2013-10-25 10:58:02 +0100 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2013-12-30 07:38:35 +0100 |
commit | e4953bc960ac1e577a3bfb4bca00fb399dc9b509 (patch) | |
tree | 344bb88f7805f684c7303611b756a5bd78b0cf9e /Core | |
parent | 83e46fee1d960010bd09a9dbd82249a15e1602f4 (diff) | |
download | symfony-security-e4953bc960ac1e577a3bfb4bca00fb399dc9b509.zip symfony-security-e4953bc960ac1e577a3bfb4bca00fb399dc9b509.tar.gz symfony-security-e4953bc960ac1e577a3bfb4bca00fb399dc9b509.tar.bz2 |
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.
Diffstat (limited to 'Core')
-rw-r--r-- | Core/Role/RoleHierarchy.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Core/Role/RoleHierarchy.php b/Core/Role/RoleHierarchy.php index a368a44..44ccb39 100644 --- a/Core/Role/RoleHierarchy.php +++ b/Core/Role/RoleHierarchy.php @@ -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) { |