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

[FrameworkBundle] removed the Translation component dependency on FrameworkBundle#20070

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

@fabpot
Copy link
Member

QA
Branch?master
Bug fix?no
New feature?yes
BC breaks?no (except for people using FrameworkBundle without requiring symfony/symfony which should be pretty rare; and fixing this is easy by adding symfony/translation explicitly)
Deprecations?no
Tests pass?yes
Fixed tickets#15748 partially
LicenseMIT
Doc PRn/a

Another PR to reduce the number of required dependencies on FrameworkBundle. This PR removes the Translation component from the list.

@fabpotfabpot merged commita496a2a intosymfony:masterSep 28, 2016
fabpot added a commit that referenced this pull requestSep 28, 2016
…pendency on FrameworkBundle (fabpot)This PR was merged into the 3.2-dev branch.Discussion----------[FrameworkBundle] removed the Translation component dependency on FrameworkBundle| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no (except for people using FrameworkBundle without requiring symfony/symfony which should be pretty rare; and fixing this is easy by adding symfony/translation explicitly)| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#15748 partially| License       | MIT| Doc PR        | n/aAnother PR to reduce the number of required dependencies on FrameworkBundle. This PR removes the Translation component from the list.Commits-------a496a2a [FrameworkBundle] removed the Translation component dependency on FrameworkBundle

/**
* {@inheritdoc}
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

You can use::class notation here

$container->addCompilerPass(newAddExpressionLanguageProvidersPass());
$container->addCompilerPass(newTranslationExtractorPass());
$container->addCompilerPass(newTranslationDumperPass());
if (class_exists('Symfony\Component\Translation\Translator')) {
Copy link
Member

Choose a reason for hiding this comment

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

all other compiler passes are always registered, and return early when the service does not exist (accounting for disabling by configuration too). Shouldn't it be done here too ?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

And for those as well. It was more about not even registering them if the translation component is not installed. But that's probably not really needed as this is for build only. I'm going to revert this change.

@fabpotfabpot deleted the translation-dep-frameworkbundle branchOctober 1, 2016 05:07
@fabpotfabpot mentioned this pull requestOct 27, 2016
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@stofstofstof left review comments

+1 more reviewer

@KocKocKoc left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@fabpot@Koc@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp