slim-twig-flash
slim-twig-flash copied to clipboard
Update for Twig 3
Fixes #6
Yes, thanks for this @slokhorst !
@kanellov Can you please merge this/release a new version (probably new major bc this is a breaking change)?
Oh, @slokhorst , maybe you can update the twig requirement in composer.json to ^3.0
and add it to this PR.
@koelle25 I think these new class names were backported to the 1.x and 2.x branches too (commit):
And see also the changelog.
So it seems to be ^1.34.0 || ^2.4.0 || ^3.0.0
, although I've not tested the 1.x and 2.x branches myself.
I copied the class with the modifications in the PR into my Slim Framework 4 app alongside Twig 3, and this works quite nicely. A merge would be splendid. Thanks!
bump
I forked it and fixed compatibility with slim/flash 0.4.
To use it in your composer add the following:
{
"repositories": [
{
"url": "https://github.com/winteragency/slim-twig-flash.git",
"type": "git"
}
],
"require": {
"kanellov/slim-twig-flash": "dev-master"
}
}