1
0
Fork 0

Update Downloader docs

pull/20/head
Kirill chEbba Chebunin 2011-09-26 00:46:24 +04:00
parent 03b88e2b19
commit 390fd6d014
3 changed files with 7 additions and 3 deletions

View File

@ -15,6 +15,8 @@ namespace Composer\Downloader;
use Composer\Package\PackageInterface;
/**
* Downloader for tar.gz files
*
* @author Kirill chEbba Chebunin <iam@chebba.org>
*/
class GzipTarDownloader extends FileDownloader

View File

@ -15,6 +15,8 @@ namespace Composer\Downloader;
use Composer\Package\PackageInterface;
/**
* Downloader for PEAR packages
*
* @author Kirill chEbba Chebunin <iam@chebba.org>
*/
class PearDownloader extends GzipTarDownloader

View File

@ -15,7 +15,10 @@ namespace Composer\Downloader;
use Composer\Package\PackageInterface;
/**
* Downloader for zip packages
*
* @author Jordi Boggiano <j.boggiano@seld.be>
* @author Kirill chEbba Chebunin <iam@chebba.org>
*/
class ZipDownloader extends FileDownloader
{
@ -25,7 +28,6 @@ class ZipDownloader extends FileDownloader
throw new \UnexpectedValueException('You need the zip extension enabled to use the ZipDownloader');
}
`
$zipArchive = new \ZipArchive();
if (true !== ($retval = $zipArchive->open($file))) {
@ -35,6 +37,4 @@ class ZipDownloader extends FileDownloader
$zipArchive->extractTo($path);
$zipArchive->close();
}
}