[task] dont define multiple implementations with same class

This commit is contained in:
Daniel Maier 2018-10-30 12:56:32 +01:00
parent fbaa555b96
commit 4606d7649e

View file

@ -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,21 +43,12 @@ 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,
@ -71,4 +61,3 @@ class ImplementationRegistrationService
);
}
}
}