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] Make sure one can use fragments.hinclude_default_template#35306

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
fabpot merged 1 commit intosymfony:4.4fromNyholm:hinclude
Jan 12, 2020

Conversation

@Nyholm
Copy link
Member

QA
Branch?4.4
Bug fix?yes
New feature?no
Deprecations?no
Tickets
LicenseMIT
Doc PR

Usingframework.fragments.hinclude_default_template is not possible in 4.4. You will always get an exception saying:

You cannot set both "templating.hinclude_default_template" and "fragments.hinclude_default_template", please only use "fragments.hinclude_default_template".

That is because infragment_renderer.xml we define the parameterfragment.renderer.hinclude.global_template to be an empty string, then in FrameworkExtension we are checking if it is null.

This PR do a!empty check instead. I also added a test to show the bug.

@nicolas-grekasnicolas-grekas added this to the4.4 milestoneJan 11, 2020
@fabpot
Copy link
Member

Thank you@Nyholm.

fabpot added a commit that referenced this pull requestJan 12, 2020
…_default_template (Nyholm)This PR was squashed before being merged into the 4.4 branch (closes#35306).Discussion----------[FrameworkBundle] Make sure one can use fragments.hinclude_default_template| Q             | A| ------------- | ---| Branch?       | 4.4| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Tickets       || License       | MIT| Doc PR        |Using `framework.fragments.hinclude_default_template` is not possible in 4.4. You will always get an exception saying:>  You cannot set both "templating.hinclude_default_template" and "fragments.hinclude_default_template", please only use "fragments.hinclude_default_template".That is because in [fragment_renderer.xml](https://github.com/symfony/symfony/blob/4.4/src/Symfony/Bundle/FrameworkBundle/Resources/config/fragment_renderer.xml#L8) we define the parameter `fragment.renderer.hinclude.global_template` to be an empty string, then in FrameworkExtension we are checking if it is null.This PR do a `!empty` check instead. I also added a test to show the bug.Commits-------25fd665 [FrameworkBundle] Make sure one can use fragments.hinclude_default_template
@fabpotfabpot merged commit25fd665 intosymfony:4.4Jan 12, 2020
@NyholmNyholm deleted the hinclude branchJanuary 13, 2020 08:10
This was referencedJan 21, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.4

Development

Successfully merging this pull request may close these issues.

4 participants

@Nyholm@fabpot@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp