mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-21 23:56:11 +01:00
Daniel Siepmann
86d02f7b8d
Allow to map search request even if no trusted properties exist. Also cache initial call to plugin. This allows to use GET as submit for forms with minimal arguments in URL.
44 lines
1.6 KiB
PHP
44 lines
1.6 KiB
PHP
<?php
|
|
|
|
call_user_func(
|
|
function ($extensionKey) {
|
|
// TODO: Add hook for Extbase -> to handle records modified through
|
|
// Frontend and backend modules not using datahandler
|
|
|
|
$GLOBALS['TYPO3_CONF_VARS'] = TYPO3\CMS\Extbase\Utility\ArrayUtility::arrayMergeRecursiveOverrule(
|
|
$GLOBALS['TYPO3_CONF_VARS'],
|
|
[
|
|
'SC_OPTIONS' => [
|
|
'extbase' => [
|
|
'commandControllers' => [
|
|
Codappix\SearchCore\Command\IndexCommandController::class,
|
|
],
|
|
],
|
|
't3lib/class.t3lib_tcemain.php' => [
|
|
'processCmdmapClass' => [
|
|
$extensionKey => \Codappix\SearchCore\Hook\DataHandler::class,
|
|
],
|
|
'processDatamapClass' => [
|
|
$extensionKey => \Codappix\SearchCore\Hook\DataHandler::class,
|
|
],
|
|
],
|
|
],
|
|
]
|
|
);
|
|
|
|
TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
|
|
'Codappix.' . $extensionKey,
|
|
'search',
|
|
[
|
|
'Search' => 'search'
|
|
]
|
|
);
|
|
|
|
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Extbase\Object\Container\Container')
|
|
->registerImplementation(
|
|
'Codappix\SearchCore\Connection\ConnectionInterface',
|
|
'Codappix\SearchCore\Connection\Elasticsearch'
|
|
);
|
|
},
|
|
$_EXTKEY
|
|
);
|