schranz-templating / templating

A template abstraction prototype for php template engines.
MIT License
23 stars 0 forks source link

Spiral: Twig not provided by the Spiral Twig Bridge #42

Open alexander-schranz opened 1 year ago

alexander-schranz commented 1 year ago

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