-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Make twig-bridge optional #134
Conversation
Codecov Report
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. @@ Coverage Diff @@
## main #134 +/- ##
===========================================
Coverage 100.00% 100.00%
- Complexity 458 463 +5
===========================================
Files 36 36
Lines 1331 1336 +5
===========================================
+ Hits 1331 1336 +5
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
e3dfefc
to
1278334
Compare
"symfony/filesystem": "^5.4 || ^6.0", | ||
"symfony/process": "^5.4 || ^6.0", | ||
"symfony/twig-bridge": "^5.4 || ^6.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can also add this to the suggest
section of composer.json
.
Just leaving a note for searchers. We began getting errors like, in the context of Drupal projects:
Since the 1.4.0 release. Adding |
That's kinda expected indeed. I wasn't expecting any BC break because if you're using the trans tag, you would already need the bridge to having your project working. Seems like it's not the case @dpi, how does your code work if you don't install |
@VincentLanglet in the lock change that updated to 1.4.0, I could see this dep was removed. So nothing in Drupal or our deps relies on this. I don't know precisely what the cause is. But I imagine its because Symfony [Bridge?] implements a Looks like Drupal's is in https://github.com/drupal/drupal/blob/11.x/core/lib/Drupal/Core/Template/TwigExtension.php#L121 It doesnt seem trivial to just bring in this class into a |
Thanks for the link.
You could try to add directly the token parser like https://github.com/VincentLanglet/Twig-CS-Fixer?tab=readme-ov-file#token-parser
|
Great! that works. Thanks @VincentLanglet |
In case anyone else comes to this...
|
No description provided.