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

Ignore missing translation dependency in FrameworkBundle#32664

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

Merged

Conversation

@alcaeus
Copy link
Contributor

QA
Branch?3.4
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PR

This applies the fix from#31156 to the validator.xml file. The error came up a couple of times in the test suite for DoctrineBundle. When usingsymfony/framework-bundle withsymfony/validator installed but withoutsymfony/translation, the call tosetTranslator will error out because of the missingtranslator service. Thus, the call tosetTranslator needs to ignore a missing translator dependency to support this scenario.

I don't know how to best test this since the translation component is present in therequire-dev directive of FrameworkBundle'scomposer.json. If you have any suggestions how to achieve this, please let me know.

When using symfony/framework-bundle with symfony/validator installed but without symfony/translation, the call to setTranslator will error out because of the missing translator service. Thus, the call to setTranslator needs to ignore a missing translator dependency to support this scenario.
@alcaeusalcaeusforce-pushed thefix-implicit-translation-dependency branch fromb2cdba8 to19eb90dCompareJuly 22, 2019 19:42
@chalasrchalasr added this to the3.4 milestoneJul 22, 2019
@Tobion
Copy link
Contributor

Thank you@alcaeus.

@TobionTobion merged commit19eb90d intosymfony:3.4Jul 22, 2019
Tobion added a commit that referenced this pull requestJul 22, 2019
… (alcaeus)This PR was merged into the 3.4 branch.Discussion----------Ignore missing translation dependency in FrameworkBundle| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |This applies the fix from#31156 to the validator.xml file. The error came up a couple of times in the test suite for DoctrineBundle. When using `symfony/framework-bundle` with `symfony/validator` installed but without `symfony/translation`, the call to `setTranslator` will error out because of the missing `translator` service. Thus, the call to `setTranslator` needs to ignore a missing translator dependency to support this scenario.I don't know how to best test this since the translation component is present in the `require-dev` directive of FrameworkBundle's `composer.json`. If you have any suggestions how to achieve this, please let me know.Commits-------19eb90d Ignore missing translation dependency in FrameworkBundle
@alcaeusalcaeus deleted the fix-implicit-translation-dependency branchJuly 23, 2019 04:46
alcaeus added a commit to alcaeus/DoctrineBundle that referenced this pull requestJul 30, 2019
alcaeus added a commit to alcaeus/DoctrineBundle that referenced this pull requestJul 30, 2019
alcaeus added a commit to alcaeus/DoctrineBundle that referenced this pull requestJul 30, 2019
alcaeus added a commit to alcaeus/DoctrineBundle that referenced this pull requestJul 30, 2019
alcaeus added a commit to alcaeus/DoctrineBundle that referenced this pull requestJul 30, 2019
alcaeus added a commit to alcaeus/DoctrineBundle that referenced this pull requestAug 24, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@xabbuhxabbuhxabbuh approved these changes

@chalasrchalasrchalasr approved these changes

+1 more reviewer

@TobionTobionTobion approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

5 participants

@alcaeus@Tobion@xabbuh@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp