schranz-templating / templating

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

Fix Twig and Spiral View Bootloader #59

Closed alexander-schranz closed 1 year ago

alexander-schranz commented 1 year ago

Fixes get the TwigEngine and NativeEngine from the Container initialized. The current implementation via directly get the TwigEngine service throws an error:

[Spiral\Views\Exception\EngineException] No associated environment found. in /Users/alexanderschranz/Documents/Projects/templating/examples/usages/spiral/vendor/spiral/twig-bridge/src/TwigEngine.php:74