AclCollectionCache

class AclCollectionCache

This service caches ACLs for an entire collection of objects.

Methods

__construct(AclProviderInterface $aclProvider, ObjectIdentityRetrievalStrategyInterface $oidRetrievalStrategy, SecurityIdentityRetrievalStrategyInterface $sidRetrievalStrategy)

Constructor.

cache(mixed $collection, array $tokens = array())

Batch loads ACLs for an entire collection; thus, it reduces the number of required queries considerably.

Details

__construct(AclProviderInterface $aclProvider, ObjectIdentityRetrievalStrategyInterface $oidRetrievalStrategy, SecurityIdentityRetrievalStrategyInterface $sidRetrievalStrategy)

Constructor.

Parameters

AclProviderInterface $aclProvider
ObjectIdentityRetrievalStrategyInterface $oidRetrievalStrategy
SecurityIdentityRetrievalStrategyInterface $sidRetrievalStrategy

cache(mixed $collection, array $tokens = array())

Batch loads ACLs for an entire collection; thus, it reduces the number of required queries considerably.

Parameters

mixed $collection anything that can be passed to foreach()
array $tokens an array of TokenInterface implementations
doc_Symfony
2016-10-28 06:04:49
Comments
Leave a Comment

Please login to continue.