From 4606d7649eba2989a1af939f83a1d978569dd4fc Mon Sep 17 00:00:00 2001 From: Daniel Maier Date: Tue, 30 Oct 2018 12:56:32 +0100 Subject: [PATCH] [task] dont define multiple implementations with same class --- .../ImplementationRegistrationService.php | 31 ++++++------------- 1 file changed, 10 insertions(+), 21 deletions(-) diff --git a/Classes/Compatibility/ImplementationRegistrationService.php b/Classes/Compatibility/ImplementationRegistrationService.php index f34d6d7..223e858 100644 --- a/Classes/Compatibility/ImplementationRegistrationService.php +++ b/Classes/Compatibility/ImplementationRegistrationService.php @@ -26,7 +26,6 @@ use Codappix\SearchCore\Domain\Index\TcaIndexer\TcaTableServiceInterface; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Core\Utility\VersionNumberUtility; use TYPO3\CMS\Extbase\Object\Container\Container; -use TYPO3\CMS\Extbase\Persistence\Generic\Qom\Comparison; /** * Register different concrete implementations, depending on current TYPO3 version. @@ -44,31 +43,21 @@ class ImplementationRegistrationService ExtensionConfigurationInterface::class, ExtensionConfiguration::class ); - - $container->registerImplementation( - TypoScriptServiceInterface::class, - TypoScriptService::class - ); - - $container->registerImplementation( - TcaTableServiceInterface::class, - TcaTableService::class - ); } else if (VersionNumberUtility::convertVersionNumberToInteger(TYPO3_version) >= 8000000) { $container->registerImplementation( ExtensionConfigurationInterface::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 + ); } }