Like mezzio plates integration before where we fixed it. The Spiral Twig integration does not provide the Twig Engine Twig\Environment / twig as a service and this make usage of it hard. Currently a hack here is used here to get Twig instance of Spiral which is very hacky:
Like mezzio plates integration before where we fixed it. The Spiral Twig integration does not provide the Twig Engine
Twig\Environment
/twig
as a service and this make usage of it hard. Currently a hack here is used here to get Twig instance of Spiral which is very hacky:https://github.com/schranz-templating/templating/blob/6ab79945c122330bcdbad237abdefd765f5ae878/src/Integration/Spiral/Twig/Bootloader/TwigBootloader.php#L18-L39
Upstream issue: https://github.com/spiral/twig-bridge/issues/10