[TASK] Do not use ::class syntax for class tx_crawler_lib 61/63261/2
authorAlexander Schnitzler <git@alexanderschnitzler.de>
Sat, 15 Feb 2020 17:16:05 +0000 (18:16 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Sat, 15 Feb 2020 18:12:53 +0000 (19:12 +0100)
This patch only pleases phpstan. The refactoring of the indexer
which includes the removal of the direct dependency to 3rd-party
classes is taken care of in the following issue.

https://forge.typo3.org/issues/83603

Releases: master
Resolves: #90384
Change-Id: Ia1ee984f692dce7f8293077cbea3359d6843cb46
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63261
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Daniel Goerz <daniel.goerz@posteo.de>
Tested-by: Björn Jacob <bjoern.jacob@tritum.de>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: Björn Jacob <bjoern.jacob@tritum.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/indexed_search/Classes/Indexer.php

index 32c1b80..d771bb9 100644 (file)
@@ -733,7 +733,11 @@ class Indexer
         // Get links:
         $list = $this->extractHyperLinks($content);
         if ($this->indexerConfig['useCrawlerForExternalFiles'] && \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('crawler')) {
-            $crawler = GeneralUtility::makeInstance(\tx_crawler_lib::class);
+            /**
+             * todo: remove dependency to class tx_crawler_lib
+             * @link https://forge.typo3.org/issues/83603
+             */
+            $crawler = GeneralUtility::makeInstance('tx_crawler_lib');
         }
         // Traverse links:
         foreach ($list as $linkInfo) {