class SiteVoter extends Voter

Voter for Site access

Constants

CONFIG

Used for access to config

DASHBOARD

Used for access to dashboard

ATTRIBUTES

Contains all the available attributes to check with in supports()

Properties

private ConfigServiceInterface $configService Stores ConfigServiceInterface
private AccessDecisionManagerInterface $decisionManager Stores AccessDecisionManagerInterface

Methods

__construct(ConfigServiceInterface $configService, AccessDecisionManagerInterface $decisionManager)

No description

bool
supports($attribute, $subject)

Checks if attribute and subject are supported

bool
voteOnAttribute($attribute, $subject, TokenInterface $token)

Votes if access is granted

Details

at line 58
__construct(ConfigServiceInterface $configService, AccessDecisionManagerInterface $decisionManager)

Parameters

ConfigServiceInterface $configService
AccessDecisionManagerInterface $decisionManager

at line 71
protected bool supports($attribute, $subject)

Checks if attribute and subject are supported

Parameters

$attribute
$subject

Return Value

bool

at line 81
protected bool voteOnAttribute($attribute, $subject, TokenInterface $token)

Votes if access is granted

Parameters

$attribute
$subject
TokenInterface $token

Return Value

bool

Exceptions

LogicException