/** * Get the Twig environment * * @return Twig_Environment */ public static function environment() { // Create it on first call if (Twig::$_environment == null) { Twig::$_environment = self::_init_env(); } return Twig::$_environment; }