Skip to content

Conversation

@NicolasJourdan
Copy link
Contributor

The current import is : Symfony\Contracts\Translation\TranslationInterface.

In this bloc, I think the needed import is Symfony\Component\Translation\TranslatorInterface

@carsonbot carsonbot changed the title [Translation] Updated TranslationInterface importation [Translator] [Translation] Updated TranslationInterface importation Dec 7, 2020
@NicolasJourdan NicolasJourdan changed the title [Translator] [Translation] Updated TranslationInterface importation [Translator] [Translation] Updated TranslationInterface import Dec 7, 2020
@NicolasJourdan NicolasJourdan changed the title [Translator] [Translation] Updated TranslationInterface import [Translator] Updated TranslationInterface import Dec 7, 2020
@wouterj
Copy link
Member

wouterj commented Dec 9, 2020

Hi @NicolasJourdan! Thanks for taking the time to submit a fix to the documentation.

Unfortunately, I believe this fix is incorrect. The TranslatorInterface was moved from the components to the contracts namespace in Symfony 4.2 (ref symfony/symfony#28210). If you use the version switcher (in the top right corner) to switch to the 4.1 docs (or any docs before 4.2), you can see the components use statement is used: https://symfony.com/doc/4.1/translation#basic-translation

@wouterj wouterj closed this Dec 9, 2020
@NicolasJourdan NicolasJourdan deleted the patch-1 branch December 9, 2020 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants