class PurchaseCreditsVoter extends Voter

Voter for PurchaseCredits access

Constants

CONFIG

Used for access to config

DASHBOARD

Used for access to dashboard

PURCHASE

Used for access to purchase

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

supports($attribute, $subject)

{@inheritdoc}

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

{@inheritdoc}

Details

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

Parameters

ConfigServiceInterface $configService
AccessDecisionManagerInterface $decisionManager

at line 77
protected supports($attribute, $subject)

{@inheritdoc}

Parameters

$attribute
$subject

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

{@inheritdoc}

Parameters

$attribute
$subject
TokenInterface $token