Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit96c4486

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 scopeHi,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,DavidCommits-------621aaf1 Change of scope
2 parents5079f34 +335bee2 commit96c4486

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 RoleHierarchyimplements 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-
privatefunctionbuildRoleMap()
59+
protectedfunctionbuildRoleMap()
6060
{
6161
$this->map =array();
6262
foreach ($this->hierarchyas$main =>$roles) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp