Closed fashxp closed 5 months ago
Why do you add the conflict here and not on pimcore/pimcore? That's the repo requiring rybakit/twig-deferred-extension
which is incompatible.
@jdreesen At least up to now, I was thinking, if one doesn't use deferred blocks in the project, they still would be able to use the latest twig version?
We are still thinking of how we can tackle this in a generic way, and also waiting for a response form the rybakit guys.
So this is the quick solution, also to fix our demo. But in the end, the final solution has to be in pimcore/pimcore
indeed.
Thx for the PR!
I don't understand. Why does pimcore/pimcore
then require rybakit/twig-deferred-extension
if it doesn't use it?
I don't understand. Why does
pimcore/pimcore
then requirerybakit/twig-deferred-extension
if it doesn't use it?
a valid point, we need to check.
Comes from https://github.com/pimcore/pimcore/commit/759181222edb9bc1ce3dea0987c3be6d251d5ace. At that time the demo templates were in the pimcore/pimcore
project. I think we can remove phive/twig-extensions-deferred
from the core and only make it required here in the demo.
FYI Merging and tagging this for "hotfixing" purposes. We will definitely look into removing it from the core, but in there it is more "bureaucratic" (and taking longer time) to be officially removing it (you know, maybe a minor release,changelog,deprecations,bc-breaks etc..)
@kingjia90 I created a PR to remve it from core: https://github.com/pimcore/pimcore/pull/16966
I also created PRs to add it here to demo and also to customer-data-framework and ecommerce-framework because there are also deferred twig blocks. There I also added the conflict to twig ^3.9.0:
see also https://github.com/twigphp/Twig/issues/4026#event-12512394479