Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 96c4486

Browse filesBrowse 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
Copy full SHA for 96c4486

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Core/Role/RoleHierarchy.php
+2-2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.