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

FIX Twig2.0 compatibility #854

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

FIX Twig2.0 compatibility #854

wants to merge 1 commit into from

Conversation

OnekO
Copy link

@OnekO OnekO commented Jun 2, 2017

Not extending final function allow this function to work with Twig 2.0

Not extending final function allow this function to work with Twig 2.0
Copy link

@Tobion Tobion left a comment

Choose a reason for hiding this comment

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

This is not the proper fix. In Twig 1.x the Twig_Function is deprecated. So this would require the update the conflict composer rule to forbid 1.x. But also in 2.x extending Twig_Function is deprecated as well.
So the only solution is to not use a custom class for the twig function, but use Twig_Function directly where needed.

@LukeTowers
Copy link

This has been implemented in the 2.0 branch of assetic-php/assetic. Until we tag 2.0, you can pull it in by using "assetic/framework": "dev-2.0/dev" in your composer.json files.

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.

3 participants