1
0
Fork 0

Updated PearDownloader to conform new DownloaderInterface

pull/22/head
everzet 2011-09-26 01:06:00 +03:00
parent 057fd47d1d
commit 5bb7bbba69
1 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ class PearDownloader implements DownloaderInterface
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */
public function download(PackageInterface $package, $path, $url, $checksum = null, $useSource = false) public function download($path, $url, $checksum = null, $useSource = false)
{ {
$this->downloadTo($package, $url, $path, $checksum); $this->downloadTo($package, $url, $path, $checksum);
} }
@ -31,7 +31,7 @@ class PearDownloader implements DownloaderInterface
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */
public function update(PackageInterface $initial, PackageInterface $target, $path, $useSource = false) public function update($path, $url, $checksum = null, $useSource = false)
{ {
// TODO rm old dir // TODO rm old dir
$this->downloadTo($package, $url, $path, $checksum); $this->downloadTo($package, $url, $path, $checksum);
@ -40,7 +40,7 @@ class PearDownloader implements DownloaderInterface
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */
public function remove(PackageInterface $package, $path, $useSource = false) public function remove($path, $useSource = false)
{ {
echo 'rm -rf '.$path; // TODO echo 'rm -rf '.$path; // TODO
} }