output->writeln('Reference Index is being updated'); $progressListener = GeneralUtility::makeInstance(ReferenceIndexProgressListener::class); $progressListener->initialize(new SymfonyStyle(new ArrayInput([]), $this->output)); $result = $this->referenceIndex->updateIndex(false, $progressListener); return empty($result['errors']); } /** * Checks whether there are reference index updates to be done */ public function isFulfilled(): bool { $result = $this->referenceIndex->updateIndex(true); return empty($result['errors']); } public function setOutput(OutputInterface $output): void { $this->output = $output; } }