mediatekformation

AuthenticatedVoter
in package
implements VoterInterface

AuthenticatedVoter votes if an attribute like IS_AUTHENTICATED_FULLY, IS_AUTHENTICATED_REMEMBERED, or IS_AUTHENTICATED_ANONYMOUSLY is present.

This list is most restrictive to least restrictive checking.

Tags
author

Fabien Potencier fabien@symfony.com

author

Johannes M. Schmitt schmittjoh@gmail.com

Interfaces, Classes, Traits and Enums

VoterInterface
VoterInterface is the interface implemented by all voters.

Table of Contents

IS_AUTHENTICATED_ANONYMOUSLY  = 'IS_AUTHENTICATED_ANONYMOUSLY'
IS_AUTHENTICATED_FULLY  = 'IS_AUTHENTICATED_FULLY'
IS_AUTHENTICATED_REMEMBERED  = 'IS_AUTHENTICATED_REMEMBERED'
$authenticationTrustResolver  : mixed
__construct()  : mixed
vote()  : int
Returns the vote for the given parameters.

Constants

IS_AUTHENTICATED_ANONYMOUSLY

public mixed IS_AUTHENTICATED_ANONYMOUSLY = 'IS_AUTHENTICATED_ANONYMOUSLY'

IS_AUTHENTICATED_FULLY

public mixed IS_AUTHENTICATED_FULLY = 'IS_AUTHENTICATED_FULLY'

IS_AUTHENTICATED_REMEMBERED

public mixed IS_AUTHENTICATED_REMEMBERED = 'IS_AUTHENTICATED_REMEMBERED'

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