8000 minor #9374 Change of scope (djoos) · symfony/symfony@96c4486 · GitHub
[go: up one dir, main page]

Skip to content

Commit 96c4486

Browse files
committed
minor #9374 Change of scope (djoos)
This PR was submitted for the 2.3 branch but it was merged into the 2.5-dev branch instead (closes #9374). Discussion ---------- Change of scope Hi, 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. Don't hesitate to ask for further clarification if necessary - thanks in advance for merging the PR! Kind regards, David Commits ------- 621aaf1 Change of scope
2 parents 5079f34 + 335bee2 commit 96c4486

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