Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.119
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
php /
Composer /
Installer /
Delete
Unzip
Name
Size
Permission
Date
Action
BinaryInstaller.php
7.05
KB
-rw-r--r--
2016-11-03 17:43
BinaryPresenceInterface.php
731
B
-rw-r--r--
2016-11-03 17:43
InstallationManager.php
10.52
KB
-rw-r--r--
2016-11-03 17:43
InstallerEvent.php
3.14
KB
-rw-r--r--
2016-11-03 17:43
InstallerEvents.php
1.01
KB
-rw-r--r--
2016-11-03 17:43
InstallerInterface.php
2.4
KB
-rw-r--r--
2016-11-03 17:43
LibraryInstaller.php
7.16
KB
-rw-r--r--
2016-11-03 17:43
MetapackageInstaller.php
1.87
KB
-rw-r--r--
2016-11-03 17:43
NoopInstaller.php
2.11
KB
-rw-r--r--
2016-11-03 17:43
PackageEvent.php
1.83
KB
-rw-r--r--
2016-11-03 17:43
PackageEvents.php
1.96
KB
-rw-r--r--
2016-11-03 17:43
PearBinaryInstaller.php
4.81
KB
-rw-r--r--
2016-11-03 17:43
PearInstaller.php
2.8
KB
-rw-r--r--
2016-11-03 17:43
PluginInstaller.php
2.55
KB
-rw-r--r--
2016-11-03 17:43
ProjectInstaller.php
2.55
KB
-rw-r--r--
2016-11-03 17:43
SuggestedPackagesReporter.php
3.32
KB
-rw-r--r--
2016-11-03 17:43
Save
Rename
<?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\Composer; use Composer\IO\IOInterface; use Composer\Repository\InstalledRepositoryInterface; use Composer\Package\PackageInterface; /** * Installer for plugin packages * * @author Jordi Boggiano <j.boggiano@seld.be> * @author Nils Adermann <naderman@naderman.de> */ class PluginInstaller extends LibraryInstaller { private $installationManager; /** * Initializes Plugin installer. * * @param IOInterface $io * @param Composer $composer * @param string $type */ public function __construct(IOInterface $io, Composer $composer, $type = 'library') { parent::__construct($io, $composer, 'composer-plugin'); $this->installationManager = $composer->getInstallationManager(); } /** * {@inheritDoc} */ public function supports($packageType) { return $packageType === 'composer-plugin' || $packageType === 'composer-installer'; } /** * {@inheritDoc} */ public function install(InstalledRepositoryInterface $repo, PackageInterface $package) { $extra = $package->getExtra(); if (empty($extra['class'])) { throw new \UnexpectedValueException('Error while installing '.$package->getPrettyName().', composer-plugin packages should have a class defined in their extra key to be usable.'); } parent::install($repo, $package); try { $this->composer->getPluginManager()->registerPackage($package, true); } catch (\Exception $e) { // Rollback installation $this->io->writeError('Plugin installation failed, rolling back'); parent::uninstall($repo, $package); throw $e; } } /** * {@inheritDoc} */ public function update(InstalledRepositoryInterface $repo, PackageInterface $initial, PackageInterface $target) { $extra = $target->getExtra(); if (empty($extra['class'])) { throw new \UnexpectedValueException('Error while installing '.$target->getPrettyName().', composer-plugin packages should have a class defined in their extra key to be usable.'); } parent::update($repo, $initial, $target); $this->composer->getPluginManager()->registerPackage($target, true); } }