[BUGFIX] Clean-up responsibilities of FAL classes
[Packages/TYPO3.CMS.git] / typo3 / sysext / scheduler / Classes / Task / FileIndexingTask.php
index e168146..8485a04 100644 (file)
@@ -85,11 +85,12 @@ class FileIndexingTask extends \TYPO3\CMS\Scheduler\Task\AbstractTask {
         */
        public function execute() {
                $successfullyExecuted = TRUE;
+
                /** @var $fileFactory \TYPO3\CMS\Core\Resource\ResourceFactory */
                $fileFactory = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Resource\\ResourceFactory');
                /** @var $indexerService \TYPO3\CMS\Core\Resource\Service\IndexerService */
                $indexerService = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Resource\\Service\\IndexerService');
-               $indexerService->setFactory($fileFactory);
+
                // run indexing of every storage
                $storageRecords = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('*', 'sys_file_storage', 'deleted = 0');
                foreach ($storageRecords as $storageRecord) {