Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter
RoleHierarchyVoter uses a RoleHierarchy to determine the roles granted to the user before voting.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class RoleHierarchyVoter
extends RoleVoter
{
- // members
- private $roleHierarchy;
- // methods
- public void __construct()
- protected void extractRoles()
- // Inherited methods from RoleVoter
- public void __construct()
- public void supportsAttribute()
- public void supportsClass()
- public void vote()
- protected void extractRoles()
Hierarchy
Constants
Name | Value |
---|---|
ACCESS_GRANTED | 1 |
ACCESS_ABSTAIN | 0 |
ACCESS_DENIED | 1 |
Members
private
- $roleHierarchy
Methods
protected
- extractRoles() — {@inheritdoc}
Inherited from Symfony\Component\Security\Core\Authorization\Voter\RoleVoter
protected
public
- supportsAttribute() — {@inheritdoc}
- supportsClass() — {@inheritdoc}
- vote() — {@inheritdoc}