mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-21 22:16:12 +01:00
TASK: Keep old logic to make changes smaller
This commit is contained in:
parent
835924a8d8
commit
b3390c66db
1 changed files with 5 additions and 5 deletions
|
@ -44,15 +44,15 @@ call_user_func(
|
||||||
|
|
||||||
// API does make use of object manager, therefore use GLOBALS
|
// API does make use of object manager, therefore use GLOBALS
|
||||||
$extensionConfiguration = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$extensionKey]);
|
$extensionConfiguration = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$extensionKey]);
|
||||||
$container = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\Container\Container::class);
|
|
||||||
if ($extensionConfiguration === false
|
if ($extensionConfiguration === false
|
||||||
|| !isset($extensionConfiguration['disable.']['elasticsearch'])
|
|| !isset($extensionConfiguration['disable.']['elasticsearch'])
|
||||||
|| $extensionConfiguration['disable.']['elasticsearch'] !== '1'
|
|| $extensionConfiguration['disable.']['elasticsearch'] !== '1'
|
||||||
) {
|
) {
|
||||||
$container->registerImplementation(
|
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\Container\Container::class)
|
||||||
\Codappix\SearchCore\Connection\ConnectionInterface::class,
|
->registerImplementation(
|
||||||
\Codappix\SearchCore\Connection\Elasticsearch::class
|
\Codappix\SearchCore\Connection\ConnectionInterface::class,
|
||||||
);
|
\Codappix\SearchCore\Connection\Elasticsearch::class
|
||||||
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
$_EXTKEY
|
$_EXTKEY
|
||||||
|
|
Loading…
Reference in a new issue