templates->effective($usernames); } /** @return array[] warnings (msg values) */ public function apply(array $sogoUsers, array $snapshot): array { $this->sogo->refreshStaticView($sogoUsers); $effects = $this->repo->takeEffects(); if ($effects['sogo_acl']) { $this->sogo->flushCache(); } $this->dovecot->flushAuthCache($effects['members']); return $this->templates->applyChanged($snapshot); } }