-
Notifications
You must be signed in to change notification settings - Fork 86
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
Question - Twig 3 Support #156
Comments
No plans yet. I'm open to it but considering we're in 3.x beta of this branch we would require a new major 4.x to use with Twig 3. |
At first glance it doesn't seem to break anything from the current 3.x branch. I'll try to use it with Twig 3 later and report back after that. |
So after checking out 3.x and changing the Twig version from diff --git a/composer.json b/composer.json
index d138a9a..99e76f8 100644
--- a/composer.json
+++ b/composer.json
@@ -21,7 +21,7 @@
"php": "^7.1",
"psr/http-message": "^1.0",
"slim/slim": "^4.0",
- "twig/twig": "^2.8"
+ "twig/twig": "^3.0"
},
"require-dev": {
"phpunit/phpunit": "^7.5",
|
I found a workaround for our project for now, but still would like to see this working out of the box without a "not-so-nice" hack.
{
"php": "^7.3",
"slim/slim": "^4.0",
"slim/twig-view": "^3.0.0-dev",
"slim/psr7": "^0.6.0",
"twig/twig": "3.0 as 2.8"
} It does not have any impact on the functionality of this package to increase the version of twig. Could you clarify, why a |
+1 |
@GameplayJDK because by requiring We should instead do |
Would changing the current version constraint of |
@adamaveray I haven't tested with the 1.x version but yeah I think that should be fine! Who wants to PR this? |
I could do that, but not before monday. I won't have access to my pc before that. So if someone else is willing to do this, feel free to do so. |
@GameplayJDK PR submitted! #158 |
Hello everyone,
as twig 3.x was released, are there plans to support the new version? However, there are some deprecations in 2.x.
Had to fiddle a bit, when I tried to install twig-view into an project containing twig 3 in its lock file.
Thanks in advance
The text was updated successfully, but these errors were encountered: