[BUGFIX] Add tx_indexedsearch as class alias again 07/36007/5
authorMathias Schreiber <mathias.schreiber@wmdb.de>
Wed, 14 Jan 2015 14:24:28 +0000 (15:24 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 14 Jan 2015 21:52:53 +0000 (22:52 +0100)
Registering a "pibase" frontend plugin with addPItoST43($_EXTKEY)
generates a TypoScript snipped for indexed_search like:

plugin.tx_indexdsearch = USER_INT
plugin.tx_indexedsearch.userFunc = tx_indexedsearch->main

The class will be instantiated and main() is called at render
time. There is no easy way to change this. In case of
indexed_search, the "old" class name "tx_indexedsearch" must
be kept as alias to the namespaced class name for the time being
to not trigger a "class not found" fatal error.

Fixes: #64280
Releases: master
Change-Id: I4f41b51b382f69a15ed4e5f19b044d5b9882ed80
Reviewed-on: http://review.typo3.org/36007
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/compatibility6/Migrations/Code/ClassAliasMap.php
typo3/sysext/indexed_search/Migrations/Code/ClassAliasMap.php [new file with mode: 0644]

index 73f81c8..1c1c7c6 100644 (file)
@@ -1029,7 +1029,6 @@ return array(
        'tx_impexp_localPageTree' => \TYPO3\CMS\Impexp\LocalPageTree::class,
        'tx_impexp_task' => \TYPO3\CMS\Impexp\Task\ImportExportTask::class,
        'Tx_IndexedSearch_Controller_SearchController' => \TYPO3\CMS\IndexedSearch\Controller\SearchController::class,
-       'tx_indexedsearch' => \TYPO3\CMS\IndexedSearch\Controller\SearchFormController::class,
        'Tx_IndexedSearch_Domain_Repository_IndexSearchRepository' => \TYPO3\CMS\IndexedSearch\Domain\Repository\IndexSearchRepository::class,
        'tx_indexedsearch_files' => \TYPO3\CMS\IndexedSearch\Hook\CrawlerFilesHook::class,
        'tx_indexedsearch_crawler' => \TYPO3\CMS\IndexedSearch\Hook\CrawlerHook::class,
@@ -1267,4 +1266,4 @@ return array(
        'Tx_Workspaces_Service_Workspaces' => \TYPO3\CMS\Workspaces\Service\WorkspaceService::class,
        'Tx_Workspaces_Service_AutoPublishTask' => \TYPO3\CMS\Workspaces\Task\AutoPublishTask::class,
        'Tx_Workspaces_Service_CleanupPreviewLinkTask' => \TYPO3\CMS\Workspaces\Task\CleanupPreviewLinkTask::class,
-);
+);
\ No newline at end of file
diff --git a/typo3/sysext/indexed_search/Migrations/Code/ClassAliasMap.php b/typo3/sysext/indexed_search/Migrations/Code/ClassAliasMap.php
new file mode 100644 (file)
index 0000000..61889cd
--- /dev/null
@@ -0,0 +1,4 @@
+<?php
+return array(
+       'tx_indexedsearch' => \TYPO3\CMS\IndexedSearch\Controller\SearchFormController::class,
+);
\ No newline at end of file