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 |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/Security/Acl/Domain/AclCollectionCache.html