Symfony\Component\Security\Acl\Domain\AclCollectionCache::cache
Batch loads ACLs for an entire collection; thus, it reduces the number of required queries considerably.
Signature
public function cache(mixed
$collection,
array
$tokens )
Parameters
$collection
— mixed- anything that can be passed to foreach()
$tokens
— array- an array of TokenInterface implementations