public static function prePackageUninstall(PackageEvent $event) {
		
		// make sure the postUpdateCmd doesnt actually do anything
		self::setPackagesRemove();
		
		// get the basic package info
		$package      = $event->getOperation()->getPackage();
		$packageType  = $package->getType();
		$packageInfo  = array();
		
		// make sure we're only evaluating pattern lab packages. remove attributes related to them.
		if (strpos($packageType,"patternlab-") !== false) {
			
			$packageInfo["name"]     = $package->getName();
			$packageInfo["type"]     = $packageType;
			$packageInfo["pathBase"] = $event->getComposer()->getInstallationManager()->getInstallPath($package);
			
			InstallerUtil::packageRemove($packageInfo);
			
		}
		
	}
public static function prePackageUninstall(PackageEvent $event) {
		
		// make sure the postUpdateCmd doesnt actually do anything
		self::setPackagesRemove();
		
		// get the basic package info
		$package      = $event->getOperation()->getPackage();
		$packageType  = $package->getType();
		$packageInfo  = array();
		
		// make sure we're only evaluating pattern lab packages. remove attributes related to them.
		if (strpos($packageType,"patternlab-") !== false) {
			
			$packageInfo["name"]     = $package->getName();
			$packageInfo["type"]     = $packageType;
			$packageInfo["pathBase"] = $event->getComposer()->getInstallationManager()->getInstallPath($package);
			
			InstallerUtil::packageRemove($packageInfo);
			
		}
		
	}
public static function prePackageUninstall ( PackageEvent $ event ) { // make sure the postUpdateCmd doesnt actually do anything self :: setPackagesRemove ( ) ; // get the basic package info $ package = $ event -> getOperation ( ) -> getPackage ( ) ; $ packageType = $ package -> getType ( ) ; $ packageInfo = array ( ) ; // make sure we're only evaluating pattern lab packages. remove attributes related to them. if ( strpos ( $ packageType , "patternlab-" ) !== false ) { $ packageInfo [ "name" ] = $ package -> getName ( ) ; $ packageInfo [ "type" ] = $ packageType ; $ packageInfo [ "pathBase" ] = $ event -> getComposer ( ) -> getInstallationManager ( ) -> getInstallPath ( $ package ) ; InstallerUtil :: packageRemove ( $ packageInfo ) ; } }
Clean-up when a package is removed
@param  {Object}     a script event object from composer
Clean - up when a package is removed