lexik / LexikTranslationBundle

This Symfony bundle allow to import translation files content into the database and provide a GUI to edit translations.
MIT License
426 stars 262 forks source link

Fix interface in constructor ImportTranslationsCommand #396

Closed Heyden7611 closed 3 years ago

Heyden7611 commented 3 years ago

Fixed for https://github.com/lexik/LexikTranslationBundle/issues/395

nicodemuz commented 2 years ago

@Heyden7611 @bartmcleod can we also add a default definition for this? After upgrading to latest master, I get the following error:

In DefinitionErrorExceptionPass.php line 54:

Cannot autowire service "Lexik\Bundle\TranslationBundle\Command\ImportTranslationsCommand": argument "$localeManager" of method "__construct()" references interface "Lexik\Bundle\TranslationBundle\Manager\LocaleManagerInterface" but no such service exists. You should maybe alias this interface to the existing "Lexik\Bundle\TranslationBundle\Manager\LocaleManager" service.

Heyden7611 commented 2 years ago

@nicodemuz Debug for bug https://github.com/lexik/LexikTranslationBundle/pull/405#pullrequestreview-821470112

Is ok for update ?

nicodemuz commented 2 years ago

@Heyden7611 Tested on latest master. Seems to work great! Thanks! :)