Currently when we install lexik / LexikTranslationBundle.
Cannot autowire service "Lexik\Bundle\TranslationBundle\Command\ImportTrans
!! lationsCommand": argument "$localeManager" of method "__construct()" refere
!! nces interface "Lexik\Bundle\TranslationBundle\Manager\LocaleManagerInterfa
!! ce" but no such service exists. You should maybe alias this interface to th
!! e existing "Lexik\Bundle\TranslationBundle\Manager\LocaleManager" service.
To correct the LocaleManager overload problem, you must:
Currently when we install lexik / LexikTranslationBundle.
To correct the LocaleManager overload problem, you must:
<service id="lexik_translation.locale.manager" alias="Lexik\Bundle\TranslationBundle\Manager\LocaleManager" public="true" />
to<service id="Lexik\Bundle\TranslationBundle\Manager\LocaleManagerInterface" alias="Lexik\Bundle\TranslationBundle\Manager\LocaleManager" public="true" />
lexik_translation.locale.manager
toLexik\Bundle\TranslationBundle\Manager\LocaleManagerInterface
Exemple for multiple implementations : https://symfony.com/doc/5.4/service_container/autowiring.html#dealing-with-multiple-implementations-of-the-same-type
After update with fix
Debug - https://github.com/lexik/LexikTranslationBundle/pull/396