storageUid > 0) { $storage = GeneralUtility::makeInstance(StorageRepository::class)->findByUid($this->storageUid); if ($storage === null) { throw new \RuntimeException(self::class . ' misconfiguration: "Storage to index" must be an existing storage.', 1615020908); } $currentEvaluatePermissionsValue = $storage->getEvaluatePermissions(); $storage->setEvaluatePermissions(false); $indexer = $this->getIndexer($storage); $indexer->processChangesInStorages(); $storage->setEvaluatePermissions($currentEvaluatePermissionsValue); } return true; } protected function getIndexer(ResourceStorage $storage): Indexer { return GeneralUtility::makeInstance(Indexer::class, $storage); } public function getTaskParameters(): array { return [ 'file_storage' => $this->storageUid, ]; } public function setTaskParameters(array $parameters): void { $this->storageUid = $parameters['storageUid'] ?? $parameters['file_storage'] ?? 0; } }