This makes the app global variable available also when accessing the Twig environment directly instead of using the TwigEngine.