Support Twig 3
Version greater than v0.13.x requires Twig3. There are some feature that were removed in Twig3, so we were forced to remove some features as well in TwigBridge
- add
'TwigBridge\Extension\Loader\Globals'
in the configuration twigbridge.extensions.enabled. Or else, you will loose global variableserrors
,app
and all other shared withView::share
- add
'TwigBridge\Extension\Laravel\Event'
in the configuration twigbridge.extensions.enabled. Or else,composing:{view name}
andcreating:{view name}
events will no longer be triggered. - Remove config 'base_template_class' in config/twigbridge.php. It is no longer possible to use a custom template class.
- Make sure you no longer support Twig2 deprecated features: https://twig.symfony.com/doc/2.x/deprecated.html