From 057fd47d1dc0d9fdddfde62e3c0ff8050056e054 Mon Sep 17 00:00:00 2001 From: everzet Date: Mon, 26 Sep 2011 01:01:40 +0300 Subject: [PATCH] Updated ZipDownloader to conform new DownloaderInterface --- src/Composer/Downloader/ZipDownloader.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Composer/Downloader/ZipDownloader.php b/src/Composer/Downloader/ZipDownloader.php index 5c67ed62d..121b499f9 100644 --- a/src/Composer/Downloader/ZipDownloader.php +++ b/src/Composer/Downloader/ZipDownloader.php @@ -12,8 +12,6 @@ namespace Composer\Downloader; -use Composer\Package\PackageInterface; - /** * @author Jordi Boggiano */ @@ -22,7 +20,7 @@ class ZipDownloader implements DownloaderInterface /** * {@inheritDoc} */ - public function download(PackageInterface $package, $path, $url, $checksum = null, $useSource = false) + public function download($path, $url, $checksum = null, $useSource = false) { $this->downloadTo($url, $path, $checksum); } @@ -30,7 +28,7 @@ class ZipDownloader implements DownloaderInterface /** * {@inheritDoc} */ - public function update(PackageInterface $initial, PackageInterface $target, $path, $useSource = false) + public function update($path, $url, $checksum = null, $useSource = false) { // TODO rm old dir $this->downloadTo($url, $path, $checksum); @@ -39,7 +37,7 @@ class ZipDownloader implements DownloaderInterface /** * {@inheritDoc} */ - public function remove(PackageInterface $package, $path, $useSource = false) + public function remove($path, $useSource = false) { echo 'rm -rf '.$path; // TODO }