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

Force load translator since templating is enabled with php engine#21374

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

@inelgnu
Copy link
Contributor

@inelgnuinelgnu commentedJan 22, 2017
edited
Loading

QA
Branch?master
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#20791
LicenseMIT
Doc PRno

This pr will fix a bug introduced in#20928

The "templating.helper.translator" service has a dependency on translator and container compilation will break if templating engine is set to "php" only.

thrownewLogicException('Validation support cannot be enabled as the Translation component is not installed.');
}

if (!class_exists('Symfony\Component\Translation\Translator') &&$isTemplatingPHPEngineEnabled) {
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

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

why ?

Copy link
Member

Choose a reason for hiding this comment

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

Because that's what we are doing now.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

@xabbuh
Copy link
Member

Wouldn't it be better to remove thetemplating.helper.translator definition instead as you can use the rest of the PHP templating integration quite well without the Translation component being present?

@inelgnu
Copy link
ContributorAuthor

@xabbuh I have no personal opinion on this.@fabpot@aitboudad what do you think ?

@aitboudad
Copy link
Contributor

seems better to me

@javiereguiluz
Copy link
Member

I agree with@xabbuh.

@jakzal
Copy link
Contributor

@inalgnu do you have time to finish this PR?

status: needs work

@xabbuh
Copy link
Member

Thanks for raising the issue @inalgnu. I have opened#22006 to remove the service instead of enabling the translator part. Thus, I am closing here in favour of#22006.

@xabbuhxabbuh closed thisMar 15, 2017
fabpot added a commit that referenced this pull requestMar 17, 2017
…s disabled (xabbuh)This PR was merged into the 3.3-dev branch.Discussion----------[FrameworkBundle] remove translator helper if Translator is disabled| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#20928 (comment),#21374| License       | MIT| Doc PR        |Commits-------25ea510 remove translator helper if Translator is disabled
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot left review comments

+2 more reviewers

@KocKocKoc left review comments

@aitboudadaitboudadaitboudad approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.3

Development

Successfully merging this pull request may close these issues.

9 participants

@inelgnu@xabbuh@aitboudad@javiereguiluz@jakzal@fabpot@Koc@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp