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

[TwigBridge][TwigBundle] Drop support for Twig 2#51626

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
nicolas-grekas merged 1 commit intosymfony:7.0fromderrabus:drop/twig-2
Sep 11, 2023

Conversation

@derrabus
Copy link
Member

QA
Branch?7.0
Bug fix?no
New feature?yes
Deprecations?no
TicketsN/A
LicenseMIT
Doc PRN/A

Let's make our lives easier and only support one major version of Twig in the future. Upgrading projects from Twig 2 to 3 shouldn't be much trouble anyway.

smnandre reacted with laugh emoji
@derrabusderrabus added TwigBundle RFCRFC = Request For Comments (proposals about features that you want to be discussed) TwigBridge labelsSep 11, 2023
@carsonbotcarsonbot changed the titleDrop support for Twig 2[TwigBridge][TwigBundle] Drop support for Twig 2Sep 11, 2023
@carsonbotcarsonbot added this to the7.0 milestoneSep 11, 2023
Copy link
Member

@stofstof left a comment

Choose a reason for hiding this comment

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

The changelog file must be updated

derrabus reacted with thumbs up emoji
@derrabus
Copy link
MemberAuthor

The changelog file must be updated

Done for TwigBundle and TwigBridge. Not sure if I need to do that for the other bundles/components as well.

@stof
Copy link
Member

@derrabus I think it is OK as is.

"symfony/process":"^6.4|^7.0",
"symfony/uid":"^6.4|^7.0",
"twig/twig":"^2.13|^3.0.4"
"twig/twig":"^3.0.4"
Copy link
Member

Choose a reason for hiding this comment

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

should this add the conflict rule ?

Copy link
MemberAuthor

@derrabusderrabusSep 11, 2023
edited
Loading

Choose a reason for hiding this comment

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

Not sure. It didn't have one before and I don't know why that is.

Copy link
Member

@GromNaNGromNaNSep 11, 2023
edited
Loading

Choose a reason for hiding this comment

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

The code that depends on twig is very robust.

if (!empty($f['class']) && (is_subclass_of($f['class'],'Twig\Template') ||is_subclass_of($f['class'],'Twig_Template')) &&method_exists($f['class'],'getDebugInfo')) {

@nicolas-grekas
Copy link
Member

Thank you@derrabus.

@nicolas-grekasnicolas-grekas merged commit0839d5a intosymfony:7.0Sep 11, 2023
@derrabusderrabus deleted the drop/twig-2 branchSeptember 11, 2023 16:51
@fabpotfabpot mentioned this pull requestOct 21, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@GromNaNGromNaNGromNaN approved these changes

@fabpotfabpotfabpot approved these changes

@stofstofstof approved these changes

@ycerutoycerutoAwaiting requested review from ycerutoyceruto is a code owner

@chalasrchalasrAwaiting requested review from chalasrchalasr is a code owner

Assignees

No one assigned

Labels

FeatureRFCRFC = Request For Comments (proposals about features that you want to be discussed)Status: ReviewedTwigBridgeTwigBundle

Projects

None yet

Milestone

7.0

Development

Successfully merging this pull request may close these issues.

6 participants

@derrabus@stof@nicolas-grekas@fabpot@GromNaN@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp