8000 Change of scope · symfony/symfony@621aaf1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 621aaf1

Browse files
committed
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.
1 parent 60a14f6 commit 621aaf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Security/Core/Role/RoleHierarchy.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
class RoleHierarchy implements RoleHierarchyInterface
2020
{
2121
private $hierarchy;
22-
private $map;
22+
protected $map;
2323

2424
/**
2525
* Constructor.
@@ -56,7 +56,7 @@ public function getReachableRoles(array $roles)
5656
return $reachableRoles;
5757
}
5858

59-
private function buildRoleMap()
59+
protected function buildRoleMap()
6060
{
6161
$this->map = array();
6262
foreach ($this->hierarchy as $main => $roles) {

0 commit comments

Comments
 (0)
0