src/PatternLab/PatternEngine/Twig/TwigUtil.php
public static function setInstance($instance = "") {
		
		if (empty($instance) || !method_exists($instance,'addGlobal')) {
			Console::writeError("please set the instance");
		}
		
		self::$instance = $instance;

	}
public static function setInstance($instance = "") {
		
		if (empty($instance) || !method_exists($instance,'addGlobal')) {
			Console::writeError("please set the instance");
		}
		
		self::$instance = $instance;

	}
public static function setInstance ( $ instance = "" ) { if ( empty ( $ instance ) || ! method_exists ( $ instance , 'addGlobal' ) ) { Console :: writeError ( "please set the instance" ) ; } self :: $ instance = $ instance ; }
Set an instance of the Twig environment
@param  {Instance}       an instance of the Twig environment
Set an instance of the Twig environment