OXIESEC PANEL
- Current Dir:
/
/
usr
/
share
/
php
/
Composer
/
Installer
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
07/20/2024 06:32:22 AM
rwxr-xr-x
📄
BinaryInstaller.php
6.8 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
BinaryPresenceInterface.php
731 bytes
01/31/2018 03:28:18 PM
rw-r--r--
📄
InstallationManager.php
10.51 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
InstallerEvent.php
3.14 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
InstallerEvents.php
1.01 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
InstallerInterface.php
2.4 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
LibraryInstaller.php
7.16 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
MetapackageInstaller.php
1.87 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
NoopInstaller.php
2.11 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
PackageEvent.php
1.83 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
PackageEvents.php
1.97 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
PearBinaryInstaller.php
4.81 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
PearInstaller.php
2.8 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
PluginInstaller.php
2.55 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
ProjectInstaller.php
2.55 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
SuggestedPackagesReporter.php
3.9 KB
01/31/2018 03:28:18 PM
rw-r--r--
Editing: PearInstaller.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\Installer; use Composer\IO\IOInterface; use Composer\Composer; use Composer\Downloader\PearPackageExtractor; use Composer\Repository\InstalledRepositoryInterface; use Composer\Package\PackageInterface; use Composer\Util\Platform; use Composer\Util\Filesystem; /** * Package installation manager. * * @author Jordi Boggiano <j.boggiano@seld.be> * @author Konstantin Kudryashov <ever.zet@gmail.com> */ class PearInstaller extends LibraryInstaller { /** * Initializes library installer. * * @param IOInterface $io io instance * @param Composer $composer * @param string $type package type that this installer handles */ public function __construct(IOInterface $io, Composer $composer, $type = 'pear-library') { $filesystem = new Filesystem(); $binaryInstaller = new PearBinaryInstaller($io, rtrim($composer->getConfig()->get('bin-dir'), '/'), rtrim($composer->getConfig()->get('vendor-dir'), '/'), $composer->getConfig()->get('bin-compat'), $filesystem, $this); parent::__construct($io, $composer, $type, $filesystem, $binaryInstaller); } /** * {@inheritDoc} */ public function update(InstalledRepositoryInterface $repo, PackageInterface $initial, PackageInterface $target) { $this->uninstall($repo, $initial); $this->install($repo, $target); } protected function installCode(PackageInterface $package) { parent::installCode($package); $isWindows = Platform::isWindows(); $php_bin = $this->binDir . ($isWindows ? '/composer-php.bat' : '/composer-php'); if (!$isWindows) { $php_bin = '/usr/bin/env ' . $php_bin; } $installPath = $this->getInstallPath($package); $vars = array( 'os' => $isWindows ? 'windows' : 'linux', 'php_bin' => $php_bin, 'pear_php' => $installPath, 'php_dir' => $installPath, 'bin_dir' => $installPath . '/bin', 'data_dir' => $installPath . '/data', 'version' => $package->getPrettyVersion(), ); $packageArchive = $this->getInstallPath($package).'/'.pathinfo($package->getDistUrl(), PATHINFO_BASENAME); $pearExtractor = new PearPackageExtractor($packageArchive); $pearExtractor->extractTo($this->getInstallPath($package), array('php' => '/', 'script' => '/bin', 'data' => '/data'), $vars); $this->io->writeError(' Cleaning up', true, IOInterface::VERBOSE); $this->filesystem->unlink($packageArchive); } }