Added Twig_Environnement as argument for the function