setName('dav:sync-system-addressbook') ->setDescription('Synchronizes users to the system addressbook'); } protected function execute(InputInterface $input, OutputInterface $output): int { $output->writeln('Syncing users ...'); $progress = new ProgressBar($output); $progress->start(); $this->syncService->syncInstance(function () use ($progress): void { $progress->advance(); }); $progress->finish(); $output->writeln(''); $this->config->setAppValue('dav', 'needs_system_address_book_sync', 'no'); return self::SUCCESS; } }