OxCom / zf3-twig

ZendTwig is a module that integrates the Twig template engine with Laminas.
MIT License
19 stars 6 forks source link

Version 0.31 provides breaking changes #14

Closed reinfi closed 4 years ago

reinfi commented 4 years ago

Hi,

are you aware of the problem that with 0.31 you're forced to use TwigModel to render Trees?

This breaks our whole application as we use ViewModel from Zend instead of the twig model.

https://github.com/OxCom/zf3-twig/compare/v0.2.1...master#diff-3a6b504b34e40a474f147f1ce59d6ccaR244

This should be mentioned somewhere. As a fix we will now extend your TwigRenderer with an own implementation of canRenderTrees.

Best regards Martin

OxCom commented 4 years ago

Please, provide minimal reproducible example of your issue (configuration and example, with view and model, so I will be able to reproduce this)?

As quick solution: you can lock dependencies in composer at suitable version.