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

Add the data_uri filter #3102

Merged
merged 1 commit into from
Aug 7, 2019
Merged

Add the data_uri filter #3102

merged 1 commit into from
Aug 7, 2019

Conversation

fabpot
Copy link
Contributor

@fabpot fabpot commented Aug 7, 2019

Implemented as a popular request here: closes twigphp/Twig-extensions#54

@fabpot fabpot merged commit 220e750 into twigphp:2.x Aug 7, 2019
fabpot added a commit that referenced this pull request Aug 7, 2019
This PR was merged into the 2.x branch.

Discussion
----------

Add the data_uri filter

Implemented as a popular request here: closes twigphp/Twig-extensions#54

Commits
-------

220e750 added the data_uri filter
@fabpot fabpot deleted the data-uri branch August 7, 2019 13:39
@@ -24,13 +24,14 @@
}
],
"require": {
"php": "^7.0",
"php": "^7.1.3",
Copy link
Contributor

@nicolas-grekas nicolas-grekas Sep 19, 2019

Choose a reason for hiding this comment

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

We should be careful here: Symfony 3.4 would e.g. bump to "twig/twig": "^1.43|^2.12", people on php 7.0 would be forced to downgrade to Twig 1 in order to continue receiving Symfony upgrades.

Copy link
Contributor

@derrabus derrabus Sep 19, 2019

Choose a reason for hiding this comment

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

I have one client who will be locked on Twig 2.11 now. I don't want to complain becuase nobody really should be on php 7.0 anymore these days. (Also, I urge them to upgrade php everytime we talk)

Anyway, if that change is kept, we should at least document the bump in the ChangeLog.

Copy link
Contributor

Choose a reason for hiding this comment

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

see #3157

fabpot added a commit that referenced this pull request Oct 1, 2019
This PR was merged into the 2.x branch.

Discussion
----------

Twig 2 is compatible with PHP 7.0

7.1 was needed for #3102, but this is not the case anymore since #3113

Commits
-------

b845ed9 Twig 2 is compatible with PHP 7.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

add a base64 encoding filter
3 participants