Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* use ProcessExecutor from BaseDumper

  • Loading branch information...
commit e332e8b1263b7e9dc33d1594c9c20f3cb47fb307 1 parent 863c4c1
@till authored
View
5 src/Composer/Package/Dumper/BaseDumper.php
@@ -54,6 +54,11 @@ class BaseDumper
protected $path;
/**
+ * @var \Composer\Util\ProcessExecutor
+ */
+ protected $process;
+
+ /**
* Working directory.
* @var string
*/
View
3  src/Composer/Package/Dumper/ZipDumper.php
@@ -31,13 +31,12 @@ public function dump(PackageInterface $package)
}
$fileName = $this->getFilename($package, 'zip');
- $process = new ProcessExecutor;
$sourceType = $package->getSourceType();
$sourceRef = $package->getSourceReference();
switch ($sourceType) {
case 'git':
- $this->downloadGit($package, $process, $workDir);
+ $this->downloadGit($package, $this->process, $workDir);
$this->packageGit($fileName, $sourceRef, $workDir);
break;
default:
Please sign in to comment.
Something went wrong with that request. Please try again.