Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Translator] Updated TranslationInterface import#14667

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
NicolasJourdan wants to merge1 commit intosymfony:5.2fromNicolasJourdan:patch-1
Closed

[Translator] Updated TranslationInterface import#14667

NicolasJourdan wants to merge1 commit intosymfony:5.2fromNicolasJourdan:patch-1

Conversation

@NicolasJourdan
Copy link
Contributor

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

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

@carsonbotcarsonbot changed the title[Translation] Updated TranslationInterface importation[Translator] [Translation] Updated TranslationInterface importationDec 7, 2020
@NicolasJourdanNicolasJourdan changed the title[Translator] [Translation] Updated TranslationInterface importation[Translator] [Translation] Updated TranslationInterface importDec 7, 2020
@NicolasJourdanNicolasJourdan changed the title[Translator] [Translation] Updated TranslationInterface import[Translator] Updated TranslationInterface importDec 7, 2020
@wouterj
Copy link
Member

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

Unfortunately, I believe this fix is incorrect. TheTranslatorInterface was moved from the components to the contracts namespace in Symfony 4.2 (refsymfony/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

@wouterjwouterj closed thisDec 9, 2020
@NicolasJourdanNicolasJourdan deleted the patch-1 branchDecember 9, 2020 12:58
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@NicolasJourdan@wouterj@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp