!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/uploads/script/vendor/composer/composer/src/Composer/Command/   drwxr-xr-x
Free 13.21 GB of 57.97 GB (22.79%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     InstallCommand.php (7.37 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?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\Installer;
use 
Composer\Plugin\CommandEvent;
use 
Composer\Plugin\PluginEvents;
use 
Composer\Util\HttpDownloader;
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 Jordi Boggiano <j.boggiano@seld.be>
 * @author Ryan Weaver <ryan@knplabs.com>
 * @author Konstantin Kudryashov <ever.zet@gmail.com>
 * @author Nils Adermann <naderman@naderman.de>
 */
class InstallCommand extends BaseCommand
{
    protected function 
configure()
    {
        
$this
            
->setName('install')
            ->
setAliases(array('i'))
            ->
setDescription('Installs the project dependencies from the composer.lock file if present, or falls back on the composer.json.')
            ->
setDefinition(array(
                new 
InputOption('prefer-source'nullInputOption::VALUE_NONE'Forces installation from package sources when possible, including VCS information.'),
                new 
InputOption('prefer-dist'nullInputOption::VALUE_NONE'Forces installation from package dist even for dev versions.'),
                new 
InputOption('dry-run'nullInputOption::VALUE_NONE'Outputs the operations but will not execute anything (implicitly enables --verbose).'),
                new 
InputOption('dev'nullInputOption::VALUE_NONE'DEPRECATED: Enables installation of require-dev packages (enabled by default, only present for BC).'),
                new 
InputOption('no-suggest'nullInputOption::VALUE_NONE'DEPRECATED: This flag does not exist anymore.'),
                new 
InputOption('no-dev'nullInputOption::VALUE_NONE'Disables installation of require-dev packages.'),
                new 
InputOption('no-autoloader'nullInputOption::VALUE_NONE'Skips autoloader generation'),
                new 
InputOption('no-scripts'nullInputOption::VALUE_NONE'Skips the execution of all scripts defined in composer.json file.'),
                new 
InputOption('no-progress'nullInputOption::VALUE_NONE'Do not output download progress.'),
                new 
InputOption('no-install'nullInputOption::VALUE_NONE'Do not use, only defined here to catch misuse of the install command.'),
                new 
InputOption('verbose''v|vv|vvv'InputOption::VALUE_NONE'Shows more details including new commits pulled in when updating 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`.'),
                new 
InputOption('apcu-autoloader'nullInputOption::VALUE_NONE'Use APCu to cache found/not-found classes.'),
                new 
InputOption('apcu-autoloader-prefix'nullInputOption::VALUE_REQUIRED'Use a custom prefix for the APCu autoloader cache. Implicitly enables --apcu-autoloader'),
                new 
InputOption('ignore-platform-req'nullInputOption::VALUE_REQUIRED InputOption::VALUE_IS_ARRAY'Ignore a specific platform requirement (php & ext- packages).'),
                new 
InputOption('ignore-platform-reqs'nullInputOption::VALUE_NONE'Ignore all platform requirements (php & ext- packages).'),
                new 
InputArgument('packages'InputArgument::IS_ARRAY InputArgument::OPTIONAL'Should not be provided, use composer require instead to add a given package to composer.json.'),
            ))
            ->
setHelp(
                <<<EOT
The <info>install</info> command reads the composer.lock file from
the current directory, processes it, and downloads and installs all the
libraries and dependencies outlined in that file. If the file does not
exist it will look for composer.json and do the same.

<info>php composer.phar install</info>

Read more at https://getcomposer.org/doc/03-cli.md#install-i
EOT
            )
        ;
    }

    protected function 
execute(InputInterface $inputOutputInterface $output)
    {
        
$io $this->getIO();
        if (
$input->getOption('dev')) {
            
$io->writeError('<warning>You are using the deprecated option "--dev". It has no effect and will break in Composer 3.</warning>');
        }
        if (
$input->getOption('no-suggest')) {
            
$io->writeError('<warning>You are using the deprecated option "--no-suggest". It has no effect and will break in Composer 3.</warning>');
        }

        if (
$args $input->getArgument('packages')) {
            
$io->writeError('<error>Invalid argument '.implode(' '$args).'. Use "composer require '.implode(' '$args).'" instead to add packages to your composer.json.</error>');

            return 
1;
        }

        if (
$input->getOption('no-install')) {
            
$io->writeError('<error>Invalid option "--no-install". Use "composer update --no-install" instead if you are trying to update the composer.lock file.</error>');

            return 
1;
        }

        
$composer $this->getComposer(true$input->getOption('no-plugins'));

        if ((!
$composer->getLocker() || !$composer->getLocker()->isLocked()) && !HttpDownloader::isCurlEnabled()) {
            
$io->writeError('<warning>Composer is operating significantly slower than normal because you do not have the PHP curl extension enabled.</warning>');
        }

        
$commandEvent = new CommandEvent(PluginEvents::COMMAND'install'$input$output);
        
$composer->getEventDispatcher()->dispatch($commandEvent->getName(), $commandEvent);

        
$install Installer::create($io$composer);

        
$config $composer->getConfig();
        list(
$preferSource$preferDist) = $this->getPreferredInstallOptions($config$input);

        
$optimize $input->getOption('optimize-autoloader') || $config->get('optimize-autoloader');
        
$authoritative $input->getOption('classmap-authoritative') || $config->get('classmap-authoritative');
        
$apcuPrefix $input->getOption('apcu-autoloader-prefix');
        
$apcu $apcuPrefix !== null || $input->getOption('apcu-autoloader') || $config->get('apcu-autoloader');

        
$ignorePlatformReqs $input->getOption('ignore-platform-reqs') ?: ($input->getOption('ignore-platform-req') ?: false);

        
$composer->getInstallationManager()->setOutputProgress(!$input->getOption('no-progress'));

        
$install
            
->setDryRun($input->getOption('dry-run'))
            ->
setVerbose($input->getOption('verbose'))
            ->
setPreferSource($preferSource)
            ->
setPreferDist($preferDist)
            ->
setDevMode(!$input->getOption('no-dev'))
            ->
setDumpAutoloader(!$input->getOption('no-autoloader'))
            ->
setRunScripts(!$input->getOption('no-scripts'))
            ->
setOptimizeAutoloader($optimize)
            ->
setClassMapAuthoritative($authoritative)
            ->
setApcuAutoloader($apcu$apcuPrefix)
            ->
setIgnorePlatformRequirements($ignorePlatformReqs)
        ;

        if (
$input->getOption('no-plugins')) {
            
$install->disablePlugins();
        }

        return 
$install->run();
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0117 ]--