Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Lazy-Loaded Twig Extension #1265

Closed
wants to merge 2 commits into from
Closed

Create Lazy-Loaded Twig Extension #1265

wants to merge 2 commits into from

Conversation

emmanuelballery
Copy link
Contributor

@emmanuelballery emmanuelballery commented Feb 7, 2020

Q A
Branch? 2.0
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #1261
License MIT
Doc PR

Hi!

Twig supports Lazy-Loaded Extensions since 1.35.0 and 2.4.4.

However, I don't really know how we can be sure that Twig is indeed >= 1.35.0 or >= 2.4.4.

I updated composer.json require-dev for twig/twig to ^1.35|^2.4.4|^3.0.

Tests have been updated too.

(Also, @mbabker provided details and Blackfire comparison in #1261)

@lsmith77 lsmith77 changed the base branch from master to 2.x January 5, 2021 12:50
@dmaicher
Copy link

dmaicher commented May 20, 2021

Any chance we could move this forward? Ideally this should maybe be for a next major version (3.0) to avoid possible BC breaks?

EDIT: actually meanwhile the twig requirement was updated already and works for this PR: /~https://github.com/liip/LiipImagineBundle/blob/2.x/composer.json#L29

@@ -16,15 +16,13 @@

class FilterExtension extends AbstractExtension
{
use FilterTrait;

Choose a reason for hiding this comment

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

considering this class is not marked @internal this is a BC break, or?

@emmanuelballery
Copy link
Contributor Author

@dmaicher I deleted the source repository and I cannot update my PR even though I have restored my fork.

May I suggest to wipe out my last commit and rebase in 2.x from there to resolve the composer conflict?

git reset --hard HEAD~1
git rebase 2.x

Or do you want me to close this PR and open up another one?

@dmaicher
Copy link

@emmanuelballery I don't mind if you open another one 😊

@lsmith77 should this target 2.x? There seems to be no 3.x branch yet.

@emmanuelballery
Copy link
Contributor Author

New PR here #1376, sorry ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants