mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-22 21:56:12 +01:00
[task] dont define multiple implementations with same class
This commit is contained in:
parent
fbaa555b96
commit
4606d7649e
1 changed files with 10 additions and 21 deletions
|
@ -26,7 +26,6 @@ use Codappix\SearchCore\Domain\Index\TcaIndexer\TcaTableServiceInterface;
|
||||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||||
use TYPO3\CMS\Core\Utility\VersionNumberUtility;
|
use TYPO3\CMS\Core\Utility\VersionNumberUtility;
|
||||||
use TYPO3\CMS\Extbase\Object\Container\Container;
|
use TYPO3\CMS\Extbase\Object\Container\Container;
|
||||||
use TYPO3\CMS\Extbase\Persistence\Generic\Qom\Comparison;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register different concrete implementations, depending on current TYPO3 version.
|
* Register different concrete implementations, depending on current TYPO3 version.
|
||||||
|
@ -44,31 +43,21 @@ class ImplementationRegistrationService
|
||||||
ExtensionConfigurationInterface::class,
|
ExtensionConfigurationInterface::class,
|
||||||
ExtensionConfiguration::class
|
ExtensionConfiguration::class
|
||||||
);
|
);
|
||||||
|
|
||||||
$container->registerImplementation(
|
|
||||||
TypoScriptServiceInterface::class,
|
|
||||||
TypoScriptService::class
|
|
||||||
);
|
|
||||||
|
|
||||||
$container->registerImplementation(
|
|
||||||
TcaTableServiceInterface::class,
|
|
||||||
TcaTableService::class
|
|
||||||
);
|
|
||||||
} else if (VersionNumberUtility::convertVersionNumberToInteger(TYPO3_version) >= 8000000) {
|
} else if (VersionNumberUtility::convertVersionNumberToInteger(TYPO3_version) >= 8000000) {
|
||||||
$container->registerImplementation(
|
$container->registerImplementation(
|
||||||
ExtensionConfigurationInterface::class,
|
ExtensionConfigurationInterface::class,
|
||||||
Version87\ExtensionConfiguration::class
|
Version87\ExtensionConfiguration::class
|
||||||
);
|
);
|
||||||
|
|
||||||
$container->registerImplementation(
|
|
||||||
TypoScriptServiceInterface::class,
|
|
||||||
TypoScriptService::class
|
|
||||||
);
|
|
||||||
|
|
||||||
$container->registerImplementation(
|
|
||||||
TcaTableServiceInterface::class,
|
|
||||||
TcaTableService::class
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$container->registerImplementation(
|
||||||
|
TypoScriptServiceInterface::class,
|
||||||
|
TypoScriptService::class
|
||||||
|
);
|
||||||
|
|
||||||
|
$container->registerImplementation(
|
||||||
|
TcaTableServiceInterface::class,
|
||||||
|
TcaTableService::class
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue