public postExtractPackageCommands ( $currentPhpExtensionDirectory, $targetFilePath ) |
public function postExtractPackageCommands($currentPhpExtensionDirectory, $targetFilePath)
{
$targetPkgDir = $currentPhpExtensionDirectory . DIRECTORY_SEPARATOR . $this->getPackageName();
$info = pathinfo($targetFilePath);
$packageName = $this->getPackageName();
$cmds = array("rm -rf {$targetPkgDir}", "mv {$currentPhpExtensionDirectory}/{$info['filename']} {$currentPhpExtensionDirectory}/{$packageName}", "mv {$currentPhpExtensionDirectory}/package.xml {$currentPhpExtensionDirectory}/{$packageName}/package.xml");
return $cmds;
}