protected function getPackageDir() {
		
		$baseDir    = realpath(getcwd()).DIRECTORY_SEPARATOR;
		$configDir  = (is_dir($baseDir."_config")) ? "_config" : "config";
		$configFile = $baseDir.$configDir.DIRECTORY_SEPARATOR."config.yml";
		
		if (file_exists($configFile)) {
			$configData = file_get_contents($configFile);
			preg_match("/packagesDir:([ ]+)?([\"'])?([A-z0-9-]{1,})([\"'])?([ ]+)?/",$configData,$matches);
			$packageDir = (isset($matches[3])) ? $matches[3] : "packages"; // provide an expected default just in case
		} else {
			$packageDir = "vendor";
		}
		
		return $packageDir;
		
	}
protected function getPackageDir() {
		
		$baseDir    = realpath(getcwd()).DIRECTORY_SEPARATOR;
		$configDir  = (is_dir($baseDir."_config")) ? "_config" : "config";
		$configFile = $baseDir.$configDir.DIRECTORY_SEPARATOR."config.yml";
		
		if (file_exists($configFile)) {
			$configData = file_get_contents($configFile);
			preg_match("/packagesDir:([ ]+)?([\"'])?([A-z0-9-]{1,})([\"'])?([ ]+)?/",$configData,$matches);
			$packageDir = (isset($matches[3])) ? $matches[3] : "packages"; // provide an expected default just in case
		} else {
			$packageDir = "vendor";
		}
		
		return $packageDir;
		
	}
protected function getPackageDir ( ) { $ baseDir = realpath ( getcwd ( ) ) . DIRECTORY_SEPARATOR ; $ configDir = ( is_dir ( $ baseDir . "_config" ) ) ? "_config" : "config" ; $ configFile = $ baseDir . $ configDir . DIRECTORY_SEPARATOR . "config.yml" ; if ( file_exists ( $ configFile ) ) { $ configData = file_get_contents ( $ configFile ) ; preg_match ( "/packagesDir:([ ]+)?([\"'])?([A-z0-9-]{1,})([\"'])?([ ]+)?/" , $ configData , $ matches ) ; $ packageDir = ( isset ( $ matches [ 3 ] ) ) ? $ matches [ 3 ] : "packages" ; // provide an expected default just in case } else { $ packageDir = "vendor" ; } return $ packageDir ; }
Returns the package directory based on Pattern Lab's config

@return string a path relative to the root of the composer.json that holds the packages
Returns the package directory based on Pattern Lab s config