setDescription('Update the reference index of TYPO3') ->addOption( 'check', 'c', InputOption::VALUE_NONE, 'Only check the reference index of TYPO3' ); } /** * Executes the command for adding or removing the lock file * * @param InputInterface $input * @param OutputInterface $output */ protected function execute(InputInterface $input, OutputInterface $output) { Bootstrap::initializeBackendAuthentication(); $isTestOnly = $input->getOption('check'); $isSilent = $output->getVerbosity() !== OutputInterface::VERBOSITY_QUIET; /** @var ReferenceIndex $referenceIndex */ $referenceIndex = GeneralUtility::makeInstance(ReferenceIndex::class); $referenceIndex->enableRuntimeCache(); $referenceIndex->updateIndex($isTestOnly, $isSilent); } }