Class

Symfony\Component\Security\Acl\Domain\PermissionGrantingStrategy

class PermissionGrantingStrategy implements PermissionGrantingStrategyInterface

The permission granting strategy to apply to the access control list.

Constants

EQUAL

ALL

ANY

Methods

setAuditLogger(AuditLoggerInterface $auditLogger)

Sets the audit logger

bool isGranted(AclInterface $acl, array $masks, array $sids, bool $administrativeMode = false)

Determines whether access to a domain object is to be granted

bool isFieldGranted(AclInterface $acl, string $field, array $masks, array $sids, bool $administrativeMode = false)

Determines whether access to a domain object's field is to be granted

Details

at line 39
public setAuditLogger(AuditLoggerInterface $auditLogger)

Sets the audit logger

Parameters

AuditLoggerInterface $auditLogger

at line 47
public bool isGranted(AclInterface $acl, array $masks, array $sids, bool $administrativeMode = false)

Determines whether access to a domain object is to be granted

Parameters

AclInterface $acl
array $masks
array $sids
bool $administrativeMode

Return Value

bool

at line 79
public bool isFieldGranted(AclInterface $acl, string $field, array $masks, array $sids, bool $administrativeMode = false)

Determines whether access to a domain object's field is to be granted

Parameters

AclInterface $acl
string $field
array $masks
array $sids
bool $administrativeMode

Return Value

bool