service($context)->update($groupId, ['add_members' => [$username]]); } /** * Creates a group (restore of a deleted domain); members follow with the mailboxes. * * @throws UserError */ public function create(Context $context, array $input): int { return (int)$this->service($context)->create($input)->id; } protected function service(Context $context): GroupService { return new GroupService($this->repo, $this->lookup, $this->templates, $this->effects, $this->sharing, $context); } }