Several services inside ContentTranslation extension do not follow best practices for dependency injection, leading to code smells. Although, there is no immediate need for these services to change, since they have been there for a long time, it is important to remove these bad patterns and properly use dependency injection in hook runner, API modules and other places.
To support this need, the following services should be refactored:
- ContentTranslation/CategoriesStorageManager
- ContentTranslation/CorporaLookup
- ContentTranslation/LoadBalancer
- ContentTranslation/PreferenceHelper
- ContentTranslation/SiteMapper
- ContentTranslation/SuggestionListManager
- ContentTranslation/Translation
- ContentTranslation/TranslationStorageManager
- ContentTranslation/Translator