1
0
Fork 0

Restoring FileDownloader constructor compatibility in ZipDownloader

pull/222/head
Kai W. 2012-01-18 17:11:26 +01:00
parent f5ac5b9b3e
commit 6cf5c6e040
1 changed files with 3 additions and 1 deletions

View File

@ -14,6 +14,7 @@ namespace Composer\Downloader;
use Composer\Package\PackageInterface; use Composer\Package\PackageInterface;
use Composer\Util\ProcessExecutor; use Composer\Util\ProcessExecutor;
use Composer\IO\IOInterface;
/** /**
* @author Jordi Boggiano <j.boggiano@seld.be> * @author Jordi Boggiano <j.boggiano@seld.be>
@ -22,9 +23,10 @@ class ZipDownloader extends FileDownloader
{ {
protected $process; protected $process;
public function __construct(ProcessExecutor $process = null) public function __construct(IOInterface $io, $ProcessExecutor $process = null)
{ {
$this->process = $process ?: new ProcessExecutor; $this->process = $process ?: new ProcessExecutor;
parent::__construct($io);
} }
protected function extract($file, $path) protected function extract($file, $path)