TwigBridge
TwigBridge copied to clipboard
Twig 2.0 breaks TwigBridge/Twig/Loader
TwigBridge\Twig\Loader
is implementing Twig_LoaderInterface
which requires the method getSourceContext
to be implemented:
FatalErrorException in Loader.php line 24:
Class TwigBridge\Twig\Loader contains 1 abstract method and must therefore be
declared abstract or implement the remaining methods (Twig_LoaderInterface::getSourceContext)
This start happening after a composer update
which bumped my Laravel project twig version:
- Removing twig/twig (v1.27.0)
- Installing twig/twig (v2.0.0)
Downloading: 100%
I locked my version of twig to 1.30
to workaround this.
Yeah Twig had some late-minute breaking changes :(
Is Twig 2.0 compatibility still in the works?
Any update @barryvdh ? Since the missing method got added to TwigBrigde/Twig/Loader this seems to work fine.
For now stick with v1. I'll try to create a new version soon.
@barryvdh Did you manage to make progress on this or can we provide help? :)
Seems to work for us as-is on master; I forked to change the twig dep to v2 in the composer.json, just waiting for the same to be added upstream here before we can switch back.
Any updates on this?
Bumping for 2018.
@barryvdh One year on - any news on this? :)