mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-24 14:16:13 +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,12 +44,12 @@ 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)
|
||||||
|
->registerImplementation(
|
||||||
\Codappix\SearchCore\Connection\ConnectionInterface::class,
|
\Codappix\SearchCore\Connection\ConnectionInterface::class,
|
||||||
\Codappix\SearchCore\Connection\Elasticsearch::class
|
\Codappix\SearchCore\Connection\Elasticsearch::class
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue