class DoctrineAclCache implements AclCacheInterface

This class is a wrapper around the actual cache implementation.

Constants

PREFIX

Methods

__construct(Cache $cache, PermissionGrantingStrategyInterface $permissionGrantingStrategy, string $prefix = self::PREFIX)

Constructor

clearCache()

Removes all ACLs from the cache

evictFromCacheById($aclId)

Removes an ACL from the cache

evictFromCacheByIdentity(ObjectIdentityInterface $oid)

Removes an ACL from the cache

getFromCacheById($aclId)

Retrieves an ACL for the given object identity primary key from the cache

getFromCacheByIdentity(ObjectIdentityInterface $oid)

Retrieves an ACL for the given object identity from the cache

putInCache(AclInterface $acl)

Stores a new ACL in the cache

Details

at line line 43
__construct(Cache $cache, PermissionGrantingStrategyInterface $permissionGrantingStrategy, string $prefix = self::PREFIX)

Constructor

Parameters

Cache $cache
PermissionGrantingStrategyInterface $permissionGrantingStrategy
string $prefix

Exceptions

InvalidArgumentException

at line line 57
clearCache()

Removes all ACLs from the cache

at line line 67
evictFromCacheById($aclId)

Removes an ACL from the cache

Parameters

$aclId

at line line 85
evictFromCacheByIdentity(ObjectIdentityInterface $oid)

Removes an ACL from the cache

The ACL which is returned, must reference the passed object identity.

Parameters

ObjectIdentityInterface $oid

at line line 98
AclInterface getFromCacheById($aclId)

Retrieves an ACL for the given object identity primary key from the cache

Parameters

$aclId

Return Value

AclInterface

at line line 118
AclInterface getFromCacheByIdentity(ObjectIdentityInterface $oid)

Retrieves an ACL for the given object identity from the cache

Parameters

ObjectIdentityInterface $oid

Return Value

AclInterface

at line line 131
putInCache(AclInterface $acl)

Stores a new ACL in the cache

Parameters

AclInterface $acl