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 /
Command /
Delete
Unzip
Name
Size
Permission
Date
Action
AboutCommand.php
1.09
KB
-rw-r--r--
2016-11-03 17:43
ArchiveCommand.php
5.99
KB
-rw-r--r--
2016-11-03 17:43
BaseCommand.php
3.2
KB
-rw-r--r--
2016-11-03 17:43
BaseDependencyCommand.php
9.7
KB
-rw-r--r--
2016-11-03 17:43
ClearCacheCommand.php
1.99
KB
-rw-r--r--
2016-11-03 17:43
ConfigCommand.php
24.83
KB
-rw-r--r--
2016-11-03 17:43
CreateProjectCommand.php
17.9
KB
-rw-r--r--
2016-11-03 17:43
DependsCommand.php
1.29
KB
-rw-r--r--
2016-11-03 17:43
DiagnoseCommand.php
25.02
KB
-rw-r--r--
2016-11-03 17:43
DumpAutoloadCommand.php
2.85
KB
-rw-r--r--
2016-11-03 17:43
ExecCommand.php
2.56
KB
-rw-r--r--
2016-11-03 17:43
GlobalCommand.php
2.73
KB
-rw-r--r--
2016-11-03 17:43
HomeCommand.php
5.08
KB
-rw-r--r--
2016-11-03 17:43
InitCommand.php
22.81
KB
-rw-r--r--
2016-11-03 17:43
InstallCommand.php
6.43
KB
-rw-r--r--
2016-11-03 17:43
LicensesCommand.php
5.33
KB
-rw-r--r--
2016-11-03 17:43
OutdatedCommand.php
2.72
KB
-rw-r--r--
2016-11-03 17:43
ProhibitsCommand.php
1.31
KB
-rw-r--r--
2016-11-03 17:43
RemoveCommand.php
6.64
KB
-rw-r--r--
2016-11-03 17:43
RequireCommand.php
9.52
KB
-rw-r--r--
2016-11-03 17:43
RunScriptCommand.php
4.25
KB
-rw-r--r--
2016-11-03 17:43
ScriptAliasCommand.php
1.76
KB
-rw-r--r--
2016-11-03 17:43
SearchCommand.php
2.86
KB
-rw-r--r--
2016-11-03 17:43
SelfUpdateCommand.php
15.48
KB
-rw-r--r--
2016-11-03 17:43
ShowCommand.php
32.06
KB
-rw-r--r--
2016-11-03 17:43
StatusCommand.php
7.91
KB
-rw-r--r--
2016-11-03 17:43
SuggestsCommand.php
5.1
KB
-rw-r--r--
2016-11-03 17:43
UpdateCommand.php
10.69
KB
-rw-r--r--
2016-11-03 17:43
ValidateCommand.php
6.72
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\Command; use Composer\Config\JsonConfigSource; use Composer\Installer; use Composer\Plugin\CommandEvent; use Composer\Plugin\PluginEvents; use Composer\Json\JsonFile; use Composer\Factory; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Output\OutputInterface; /** * @author Pierre du Plessis <pdples@gmail.com> * @author Jordi Boggiano <j.boggiano@seld.be> */ class RemoveCommand extends BaseCommand { protected function configure() { $this ->setName('remove') ->setDescription('Removes a package from the require or require-dev') ->setDefinition(array( new InputArgument('packages', InputArgument::IS_ARRAY, 'Packages that should be removed.'), new InputOption('dev', null, InputOption::VALUE_NONE, 'Removes a package from the require-dev section.'), new InputOption('no-progress', null, InputOption::VALUE_NONE, 'Do not output download progress.'), new InputOption('no-update', null, InputOption::VALUE_NONE, 'Disables the automatic update of the dependencies.'), new InputOption('no-scripts', null, InputOption::VALUE_NONE, 'Skips the execution of all scripts defined in composer.json file.'), new InputOption('update-no-dev', null, InputOption::VALUE_NONE, 'Run the dependency update with the --no-dev option.'), new InputOption('update-with-dependencies', null, InputOption::VALUE_NONE, 'Allows inherited dependencies to be updated with explicit dependencies. (Deprecrated, is now default behavior)'), new InputOption('no-update-with-dependencies', null, InputOption::VALUE_NONE, 'Does not allow inherited dependencies to be updated with explicit dependencies.'), new InputOption('ignore-platform-reqs', null, InputOption::VALUE_NONE, 'Ignore platform requirements (php & ext- packages).'), new InputOption('optimize-autoloader', 'o', InputOption::VALUE_NONE, 'Optimize autoloader during autoloader dump'), new InputOption('classmap-authoritative', 'a', InputOption::VALUE_NONE, 'Autoload classes from the classmap only. Implicitly enables `--optimize-autoloader`.'), )) ->setHelp(<<<EOT The <info>remove</info> command removes a package from the current list of installed packages <info>php composer.phar remove</info> EOT ) ; } protected function execute(InputInterface $input, OutputInterface $output) { $packages = $input->getArgument('packages'); $packages = array_map('strtolower', $packages); $file = Factory::getComposerFile(); $jsonFile = new JsonFile($file); $composer = $jsonFile->read(); $composerBackup = file_get_contents($jsonFile->getPath()); $json = new JsonConfigSource($jsonFile); $type = $input->getOption('dev') ? 'require-dev' : 'require'; $altType = !$input->getOption('dev') ? 'require-dev' : 'require'; $io = $this->getIO(); if ($input->getOption('update-with-dependencies')) { $io->writeError('<warning>You are using the deprecated option "update-with-dependencies". This is now default behaviour. The --no-update-with-dependencies option can be used to remove a package without its dependencies.</warning>'); } // make sure name checks are done case insensitively foreach (array('require', 'require-dev') as $linkType) { if (isset($composer[$linkType])) { foreach ($composer[$linkType] as $name => $version) { $composer[$linkType][strtolower($name)] = $version; } } } foreach ($packages as $package) { if (isset($composer[$type][$package])) { $json->removeLink($type, $package); } elseif (isset($composer[$altType][$package])) { $io->writeError('<warning>'.$package.' could not be found in '.$type.' but it is present in '.$altType.'</warning>'); if ($io->isInteractive()) { if ($io->askConfirmation('Do you want to remove it from '.$altType.' [<comment>yes</comment>]? ', true)) { $json->removeLink($altType, $package); } } } else { $io->writeError('<warning>'.$package.' is not required in your composer.json and has not been removed</warning>'); } } if ($input->getOption('no-update')) { return 0; } // Update packages $this->resetComposer(); $composer = $this->getComposer(true, $input->getOption('no-plugins')); $composer->getDownloadManager()->setOutputProgress(!$input->getOption('no-progress')); $commandEvent = new CommandEvent(PluginEvents::COMMAND, 'remove', $input, $output); $composer->getEventDispatcher()->dispatch($commandEvent->getName(), $commandEvent); $install = Installer::create($io, $composer); $updateDevMode = !$input->getOption('update-no-dev'); $optimize = $input->getOption('optimize-autoloader') || $composer->getConfig()->get('optimize-autoloader'); $authoritative = $input->getOption('classmap-authoritative') || $composer->getConfig()->get('classmap-authoritative'); $install ->setVerbose($input->getOption('verbose')) ->setDevMode($updateDevMode) ->setOptimizeAutoloader($optimize) ->setClassMapAuthoritative($authoritative) ->setUpdate(true) ->setUpdateWhitelist($packages) ->setWhitelistDependencies(!$input->getOption('no-update-with-dependencies')) ->setIgnorePlatformRequirements($input->getOption('ignore-platform-reqs')) ->setRunScripts(!$input->getOption('no-scripts')) ; $exception = null; try { $status = $install->run(); } catch (\Exception $exception) { $status = 1; } if ($status !== 0) { $io->writeError("\n".'<error>Removal failed, reverting '.$file.' to its original content.</error>'); file_put_contents($jsonFile->getPath(), $composerBackup); } if ($exception) { throw $exception; } return $status; } }