8000 Change of scope by djoos · Pull Request #9374 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Change of scope #9374

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
  • Loading branch information
djoos committed Oct 25, 2013
commit 621aaf10ed57e6bebd4f6f9575a0bf67edac8540
4 changes: 2 additions & 2 deletions src/Symfony/Component/Security/Core/Role/RoleHierarchy.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
class RoleHierarchy implements RoleHierarchyInterface
{
private $hierarchy;
private $map;
protected $map;

/**
* Constructor.
Expand Down Expand Up @@ -56,7 +56,7 @@ public function getReachableRoles(array $roles)
return $reachableRoles;
}

private function buildRoleMap()
protected function buildRoleMap()
{
$this->map = array();
foreach ($this->hierarchy as $main => $roles) {
Expand Down
0