public static function init() {
		
		$found = false;
		$patternExtension = Config::getOption("patternExtension");
		self::loadRules();
		
		foreach (self::$rules as $rule) {
			if ($rule->test($patternExtension)) {
				self::$instance = $rule;
				$found = true;
				break;
			}
		}
		
		if (!$found) {
			Console::writeError("the supplied pattern extension didn't match a pattern loader rule. check your config...");
		}
		
	}
public static function init() {
		
		$found = false;
		$patternExtension = Config::getOption("patternExtension");
		self::loadRules();
		
		foreach (self::$rules as $rule) {
			if ($rule->test($patternExtension)) {
				self::$instance = $rule;
				$found = true;
				break;
			}
		}
		
		if (!$found) {
			Console::writeError("the supplied pattern extension didn't match a pattern loader rule. check your config...");
		}
		
	}
public static function init ( ) { $ found = false ; $ patternExtension = Config :: getOption ( "patternExtension" ) ; self :: loadRules ( ) ; foreach ( self :: $ rules as $ rule ) { if ( $ rule -> test ( $ patternExtension ) ) { self :: $ instance = $ rule ; $ found = true ; break ; } } if ( ! $ found ) { Console :: writeError ( "the supplied pattern extension didn't match a pattern loader rule. check your config..." ) ; } }
Load a new instance of the Pattern Loader
Load a new instance of the Pattern Loader