ModuleAccessGateVoter
final class \
- Extends
- Voter
Decides on accessing a backend module by asking the module access gate registered for its access value: for an access value that is not one of TYPO3 Core, and for one whose Core gate an extension replaced. This keeps the deprecated gates of extensions working, while every module access is decided by the authorization checker, so that voters of extensions can restrict it as well.
A gate requires the backend user object the principal was established for. Without it, e.g. for a principal of a token, access is denied.
Internal
Tags
Attributes
Table of Contents
Methods
- __construct() : mixed
- supportsAttribute() : bool
- supportsType() : bool
- supports() : bool
- voteOnAttribute() : bool
Methods
__construct()
public
__construct(ModuleAccessGateRegistry $gateRegistry, LegacyBackendUserRegistry $legacyUserRegistry, ReplacedModuleAccessGates $replacedGates) : mixed
Parameters
- $gateRegistry : ModuleAccessGateRegistry
- $legacyUserRegistry : LegacyBackendUserRegistry
- $replacedGates : ReplacedModuleAccessGates
supportsAttribute()
public
supportsAttribute(string $attribute) : bool
Parameters
- $attribute : string
Return values
boolsupportsType()
public
supportsType(string $subjectType) : bool
Parameters
- $subjectType : string
Return values
boolsupports()
protected
supports(string $attribute, mixed $subject) : bool
Parameters
- $attribute : string
- $subject : mixed
Return values
boolvoteOnAttribute()
protected
voteOnAttribute(string $attribute, mixed $subject, TokenInterface $token[, Vote|null $vote = null ]) : bool
Parameters
- $attribute : string
- $subject : mixed
- $token : TokenInterface
- $vote : Vote|null = null