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

[Validator] Deprecated interface still required for TranslationInterface in Validator#31025

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

Conversation

@snebes
Copy link

QA
Branch?4.2
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#30591 (related)
LicenseMIT

This PR removes the hard requirement for the LegacyValidatorInterface used by replacing the type-hint with a docBlock typehint for either the non-deprecated or deprecated TranslatorInterface.

Also, updated the test to use the new TranslatorInterface contract.

@snebessnebes changed the title[Validator] Removed legacy interfaces[Validator] Deprecated interface still required for TranslationInterface in ValidatorApr 8, 2019
@nicolas-grekasnicolas-grekas added this to the4.2 milestoneApr 8, 2019
* {@inheritdoc}
*/
publicfunctionsetTranslator(LegacyTranslatorInterface$translator)
publicfunctionsetTranslator($translator)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Changing this is a BC break - but that might be OK as maybe nobody extends this class.
If not, we need to rethink the BC layer.

@snebessnebesforce-pushed thevalidator-legacy-translator-interface-update branch fromd247e67 to4301a56CompareApril 8, 2019 21:10
@snebessnebes closed thisApr 8, 2019
@snebessnebes deleted the validator-legacy-translator-interface-update branchApril 8, 2019 21:27
@snebessnebes restored the validator-legacy-translator-interface-update branchApril 8, 2019 21:27
@snebes
Copy link
Author

Accidentally closed this one

@snebessnebes reopened thisApr 8, 2019
@nicolas-grekas
Copy link
Member

Thinking twice, this change is wrong - as in "BC break".
What needs to be done instead is wrapping the translator passed tosetTranslator in aLegacyTranslatorProxy.

@snebessnebes closed thisApr 10, 2019
@snebessnebes deleted the validator-legacy-translator-interface-update branchApril 10, 2019 15:55
@stof
Copy link
Member

but then, we need to update FrameworkBundle to perform this wrapping. Otherwise, we force thetranslator service to implement the old interface.

@stof
Copy link
Member

btw, this also means we don't have a migration path on the ValidatorBuilder for now.

@nicolas-grekas
Copy link
Member

btw, this also means we don't have a migration path on the ValidatorBuilder for now.

we have one: the class is made final

fabpot pushed a commit that referenced this pull requestApr 17, 2019
…or with LegacyTranslatorProxy (nicolas-grekas)This PR was merged into the 4.2 branch.Discussion----------[FrameworkBundle] decorate the ValidatorBuilder's translator with LegacyTranslatorProxy| Q             | A| ------------- | ---| Branch?       | 4.2| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#31092,#31025| License       | MIT| Doc PR        | -This allows defining a translator that implements only the new interface and use it with ValidatorBuilder.ping@dvdknaap,@snebes since you were affected.Commits-------a12656e [FrameworkBundle] decorate the ValidatorBuilder's translator with LegacyTranslatorProxy
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

Assignees

No one assigned

Projects

None yet

Milestone

4.2

Development

Successfully merging this pull request may close these issues.

4 participants

@snebes@nicolas-grekas@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp