1
0
Fork 0
composer/src/Composer/Downloader/PearDownloader.php

29 lines
646 B
PHP
Raw Normal View History

<?php
/*
* This file is part of Composer.
*
* (c) Nils Adermann <naderman@naderman.de>
* Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Composer\Downloader;
use Composer\Package\PackageInterface;
/**
* @author Jordi Boggiano <j.boggiano@seld.be>
*/
class PearDownloader extends FileDownloader
{
protected function extract($file, $path)
2011-09-25 21:43:49 +00:00
{
system(sprintf('tar -zxf %s', escapeshellarg($file)));
@unlink($path . '/package.sig');
@unlink($path . '/package.xml');
}
2011-09-17 13:12:45 +00:00
}