Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.31
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
php /
Composer /
Command /
[ HOME SHELL ]
Name
Size
Permission
Action
AboutCommand.php
1.1
KB
-rw-r--r--
ArchiveCommand.php
6.42
KB
-rw-r--r--
BaseCommand.php
4.51
KB
-rw-r--r--
BaseDependencyCommand.php
9.7
KB
-rw-r--r--
CheckPlatformReqsCommand.php
4.9
KB
-rw-r--r--
ClearCacheCommand.php
1.99
KB
-rw-r--r--
ConfigCommand.php
26.21
KB
-rw-r--r--
CreateProjectCommand.php
17.35
KB
-rw-r--r--
DependsCommand.php
1.29
KB
-rw-r--r--
DiagnoseCommand.php
25.52
KB
-rw-r--r--
DumpAutoloadCommand.php
3.21
KB
-rw-r--r--
ExecCommand.php
2.74
KB
-rw-r--r--
GlobalCommand.php
2.86
KB
-rw-r--r--
HomeCommand.php
5.29
KB
-rw-r--r--
InitCommand.php
28.09
KB
-rw-r--r--
InstallCommand.php
6.17
KB
-rw-r--r--
LicensesCommand.php
5.32
KB
-rw-r--r--
OutdatedCommand.php
3.44
KB
-rw-r--r--
ProhibitsCommand.php
1.31
KB
-rw-r--r--
RemoveCommand.php
6.81
KB
-rw-r--r--
RequireCommand.php
10.15
KB
-rw-r--r--
RunScriptCommand.php
4.82
KB
-rw-r--r--
ScriptAliasCommand.php
1.88
KB
-rw-r--r--
SearchCommand.php
2.86
KB
-rw-r--r--
SelfUpdateCommand.php
16.48
KB
-rw-r--r--
ShowCommand.php
37.82
KB
-rw-r--r--
StatusCommand.php
7.89
KB
-rw-r--r--
SuggestsCommand.php
5.1
KB
-rw-r--r--
UpdateCommand.php
10.82
KB
-rw-r--r--
ValidateCommand.php
6.73
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : SuggestsCommand.php
<?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\Command; use Composer\Repository\PlatformRepository; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; class SuggestsCommand extends BaseCommand { protected function configure() { $this ->setName('suggests') ->setDescription('Shows package suggestions.') ->setDefinition(array( new InputOption('by-package', null, InputOption::VALUE_NONE, 'Groups output by suggesting package'), new InputOption('by-suggestion', null, InputOption::VALUE_NONE, 'Groups output by suggested package'), new InputOption('no-dev', null, InputOption::VALUE_NONE, 'Exclude suggestions from require-dev packages'), new InputArgument('packages', InputArgument::IS_ARRAY | InputArgument::OPTIONAL, 'Packages that you want to list suggestions from.'), )) ->setHelp(<<<EOT The <info>%command.name%</info> command shows a sorted list of suggested packages. Enabling <info>-v</info> implies <info>--by-package --by-suggestion</info>, showing both lists. EOT ) ; } protected function execute(InputInterface $input, OutputInterface $output) { $lock = $this->getComposer()->getLocker()->getLockData(); if (empty($lock)) { throw new \RuntimeException('Lockfile seems to be empty?'); } $packages = $lock['packages']; if (!$input->getOption('no-dev')) { $packages += $lock['packages-dev']; } $filter = $input->getArgument('packages'); // First assemble lookup list of packages that are installed, replaced or provided $installed = array(); foreach ($packages as $package) { $installed[] = $package['name']; if (!empty($package['provide'])) { $installed = array_merge($installed, array_keys($package['provide'])); } if (!empty($package['replace'])) { $installed = array_merge($installed, array_keys($package['replace'])); } } // Undub and sort the install list into a sorted lookup array $installed = array_flip($installed); ksort($installed); // Init platform repo $platform = new PlatformRepository(array(), $this->getComposer()->getConfig()->get('platform') ?: array()); // Next gather all suggestions that are not in that list $suggesters = array(); $suggested = array(); foreach ($packages as $package) { $packageName = $package['name']; if ((!empty($filter) && !in_array($packageName, $filter)) || empty($package['suggest'])) { continue; } foreach ($package['suggest'] as $suggestion => $reason) { if (false === strpos('/', $suggestion) && null !== $platform->findPackage($suggestion, '*')) { continue; } if (!isset($installed[$suggestion])) { $suggesters[$packageName][$suggestion] = $reason; $suggested[$suggestion][$packageName] = $reason; } } } ksort($suggesters); ksort($suggested); // Determine output mode $mode = 0; $io = $this->getIO(); if ($input->getOption('by-package') || $io->isVerbose()) { $mode |= 1; } if ($input->getOption('by-suggestion')) { $mode |= 2; } // Simple mode if ($mode === 0) { foreach (array_keys($suggested) as $suggestion) { $io->write(sprintf('<info>%s</info>', $suggestion)); } return; } // Grouped by package if ($mode & 1) { foreach ($suggesters as $suggester => $suggestions) { $io->write(sprintf('<comment>%s</comment> suggests:', $suggester)); foreach ($suggestions as $suggestion => $reason) { $io->write(sprintf(' - <info>%s</info>: %s', $suggestion, $reason ?: '*')); } $io->write(''); } } // Grouped by suggestion if ($mode & 2) { // Improve readability in full mode if ($mode & 1) { $io->write(str_repeat('-', 78)); } foreach ($suggested as $suggestion => $suggesters) { $io->write(sprintf('<comment>%s</comment> is suggested by:', $suggestion)); foreach ($suggesters as $suggester => $reason) { $io->write(sprintf(' - <info>%s</info>: %s', $suggester, $reason ?: '*')); } $io->write(''); } } } }
Close