OXIESEC PANEL
- Current Dir:
/
/
usr
/
share
/
php
/
Composer
/
Downloader
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
07/20/2024 06:32:22 AM
rwxr-xr-x
📄
ArchiveDownloader.php
4.42 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
ChangeReportInterface.php
766 bytes
01/31/2018 03:28:18 PM
rw-r--r--
📄
DownloadManager.php
10.29 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
DownloaderInterface.php
1.74 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
DvcsDownloaderInterface.php
782 bytes
01/31/2018 03:28:18 PM
rw-r--r--
📄
FileDownloader.php
9.85 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
FilesystemException.php
672 bytes
01/31/2018 03:28:18 PM
rw-r--r--
📄
FossilDownloader.php
3.88 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
GitDownloader.php
19.39 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
GzipDownloader.php
2.54 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
HgDownloader.php
3.22 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
PathDownloader.php
6.92 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
PearPackageExtractor.php
11.39 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
PerforceDownloader.php
2.79 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
PharDownloader.php
937 bytes
01/31/2018 03:28:18 PM
rw-r--r--
📄
RarDownloader.php
2.79 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
SvnDownloader.php
7.7 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
TarDownloader.php
697 bytes
01/31/2018 03:28:18 PM
rw-r--r--
📄
TransportException.php
1009 bytes
01/31/2018 03:28:18 PM
rw-r--r--
📄
VcsCapableDownloaderInterface.php
795 bytes
01/31/2018 03:28:18 PM
rw-r--r--
📄
VcsDownloader.php
10.26 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
XzDownloader.php
1.67 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
ZipDownloader.php
7.91 KB
01/31/2018 03:28:18 PM
rw-r--r--
Editing: XzDownloader.php
Close
<?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\Config; use Composer\Cache; use Composer\EventDispatcher\EventDispatcher; use Composer\Package\PackageInterface; use Composer\Util\ProcessExecutor; use Composer\Util\RemoteFilesystem; use Composer\IO\IOInterface; /** * Xz archive downloader. * * @author Pavel Puchkin <i@neoascetic.me> * @author Pierre Rudloff <contact@rudloff.pro> */ class XzDownloader extends ArchiveDownloader { protected $process; public function __construct(IOInterface $io, Config $config, EventDispatcher $eventDispatcher = null, Cache $cache = null, ProcessExecutor $process = null, RemoteFilesystem $rfs = null) { $this->process = $process ?: new ProcessExecutor($io); parent::__construct($io, $config, $eventDispatcher, $cache, $rfs); } protected function extract($file, $path) { $command = 'tar -xJf ' . ProcessExecutor::escape($file) . ' -C ' . ProcessExecutor::escape($path); if (0 === $this->process->execute($command, $ignoredOutput)) { return; } $processError = 'Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput(); throw new \RuntimeException($processError); } /** * {@inheritdoc} */ protected function getFileName(PackageInterface $package, $path) { return $path.'/'.pathinfo(parse_url($package->getDistUrl(), PHP_URL_PATH), PATHINFO_BASENAME); } }