public static function packageRemove($packageInfo) {
		
		// run the console and config inits
		self::init();
		
		// see if the package has a listener and remove it
		self::scanForListener($packageInfo["pathBase"],true);
		
		// see if the package is a pattern engine and remove the rule
		if ($packageInfo["type"] == "patternlab-patternengine") {
			self::scanForPatternEngineRule($packageInfo["pathBase"],true);
		}
		
		// remove the component package file if it exists
		$jsonFile = Config::getOption("componentDir")."/packages/".str_replace("/","-",$packageInfo["name"]).".json";
		if (file_exists($jsonFile)) {
			unlink($jsonFile);
		}
		
	}
public static function packageRemove($packageInfo) {
		
		// run the console and config inits
		self::init();
		
		// see if the package has a listener and remove it
		self::scanForListener($packageInfo["pathBase"],true);
		
		// see if the package is a pattern engine and remove the rule
		if ($packageInfo["type"] == "patternlab-patternengine") {
			self::scanForPatternEngineRule($packageInfo["pathBase"],true);
		}
		
		// remove the component package file if it exists
		$jsonFile = Config::getOption("componentDir")."/packages/".str_replace("/","-",$packageInfo["name"]).".json";
		if (file_exists($jsonFile)) {
			unlink($jsonFile);
		}
		
	}
public static function packageRemove ( $ packageInfo ) { // run the console and config inits self :: init ( ) ; // see if the package has a listener and remove it self :: scanForListener ( $ packageInfo [ "pathBase" ] , true ) ; // see if the package is a pattern engine and remove the rule if ( $ packageInfo [ "type" ] == "patternlab-patternengine" ) { self :: scanForPatternEngineRule ( $ packageInfo [ "pathBase" ] , true ) ; } // remove the component package file if it exists $ jsonFile = Config :: getOption ( "componentDir" ) . "/packages/" . str_replace ( "/" , "-" , $ packageInfo [ "name" ] ) . ".json" ; if ( file_exists ( $ jsonFile ) ) { unlink ( $ jsonFile ) ; } }
Handle some Pattern Lab specific tasks based on what's found in the package's composer.json file on uninstall
@param  {Array}      the info culled from a pattern lab-related package that's being removed
Handle some Pattern Lab specific tasks based on what s found in the package s composer . json file on uninstall