/** * Return the instance of ContaoTwig. * * @static * @return ContaoTwig|Twig_Environment */ public static function getInstance() { if (self::$objInstance === null) { self::$objInstance = new self(); } return self::$objInstance; }