Actions
Bug #64886
closedindexed search extbase plugin doesn't work after moving class alias to compat extension
Status:
Closed
Priority:
Should have
Assignee:
Category:
Indexed Search
Target version:
-
Start date:
2015-02-05
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Stabilization Sprint
Description
Indexed search extbase experimental plugin (pi2) doesn't work after moving class alias to compatibility6 extension.
The indexed search plugin is registered like that:
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin($_EXTKEY, 'Pi2', array('Search' => 'form,search'), array('Search' => 'form,search'));
Which makes Extbase to generate following TS:
tt_content.list.20.indexedsearch_pi2 = USER tt_content.list.20.indexedsearch_pi2 { userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run extensionName = IndexedSearch pluginName = Pi2 }
Which then makes extbase to look for non namespaced class:
Tx_IndexedSearch_Controller_SearchController
instead of:
\TYPO3\CMS\IndexedSearch\Controller\SearchController
we can fix it in 2 ways:
1. Not breaking - move class alias for this clas from compatibility6 extension back to indexed search
2. Breaking change:
Change plugin registration code to:
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('TYPO3\CMS.'.$_EXTKEY, 'Pi2', array('Search' => 'form,search'), array('Search' => 'form,search'));
Actions