I have built a twig extension to do some things and one of them is render a template. How can I access from inside the twig extension the engine environment and call the Render
Using this function the user can pass the twig environment instance to a twig extension
private $environment; public function initRuntime(\Twig_Environment $environment) { $this->environment = $environment; }