mediatekformation

ExpressionVoter
in package
implements VoterInterface

ExpressionVoter votes based on the evaluation of an expression.

Tags
author

Fabien Potencier fabien@symfony.com

Interfaces, Classes, Traits and Enums

VoterInterface
VoterInterface is the interface implemented by all voters.

Table of Contents

$authChecker  : mixed
$expressionLanguage  : mixed
$roleHierarchy  : mixed
$trustResolver  : mixed
__construct()  : mixed
addExpressionLanguageProvider()  : mixed
vote()  : int
Returns the vote for the given parameters.
getVariables()  : array<string|int, 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