mediatekformation

RoleHierarchyVoter extends RoleVoter
in package

RoleHierarchyVoter uses a RoleHierarchy to determine the roles granted to the user before voting.

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

$prefix  : mixed
$roleHierarchy  : mixed
__construct()  : mixed
vote()  : int
Returns the vote for the given parameters.
extractRoles()  : mixed

Properties

Methods

vote()

Returns the vote for the given parameters.

public vote(TokenInterface $token, mixed $subject, array<string|int, mixed> $attributes) : int
Parameters
$token : TokenInterface
$subject : mixed

The subject to secure

$attributes : array<string|int, mixed>

An array of attributes associated with the method being invoked

Return values
int

either ACCESS_GRANTED, ACCESS_ABSTAIN, or ACCESS_DENIED

Search results