Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 216.73.216.95
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
vendor /
symfony /
flex /
src /
Command /
Delete
Unzip
Name
Size
Permission
Date
Action
DumpEnvCommand.php
4.76
KB
-rw-rw-r--
2022-08-07 09:39
GenerateIdCommand.php
985
B
-rw-rw-r--
2022-08-07 09:39
InstallRecipesCommand.php
7.23
KB
-rw-rw-r--
2022-08-07 09:39
RecipesCommand.php
10.59
KB
-rw-rw-r--
2022-08-07 09:39
UnpackCommand.php
4.25
KB
-rw-rw-r--
2022-08-07 09:39
UpdateRecipesCommand.php
15.12
KB
-rw-rw-r--
2022-08-07 09:39
Save
Rename
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Flex\Command; use Composer\Command\BaseCommand; use Composer\Factory; use Composer\Installer; use Composer\Package\Version\VersionParser; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Flex\PackageResolver; use Symfony\Flex\Unpack\Operation; use Symfony\Flex\Unpacker; /** * @deprecated since Flex 1.4 */ class UnpackCommand extends BaseCommand { private $resolver; public function __construct(PackageResolver $resolver) { $this->resolver = $resolver; parent::__construct(); } protected function configure() { $this->setName('symfony:unpack') ->setAliases(['unpack']) ->setDescription('[DEPRECATED] Unpacks a Symfony pack.') ->setDefinition([ new InputArgument('packages', InputArgument::IS_ARRAY | InputArgument::REQUIRED, 'Installed packages to unpack.'), new InputOption('sort-packages', null, InputOption::VALUE_NONE, 'Sorts packages'), ]) ; } protected function execute(InputInterface $input, OutputInterface $output) { $composer = $this->getComposer(); $packages = $this->resolver->resolve($input->getArgument('packages'), true); $io = $this->getIO(); $lockData = $composer->getLocker()->getLockData(); $installedRepo = $composer->getRepositoryManager()->getLocalRepository(); $versionParser = new VersionParser(); $dryRun = $input->hasOption('dry-run') && $input->getOption('dry-run'); $io->writeError('<warning>Command "symfony:unpack" is deprecated, Symfony packs are always unpacked now.</>'); $op = new Operation(true, $input->getOption('sort-packages') || $composer->getConfig()->get('sort-packages')); foreach ($versionParser->parseNameVersionPairs($packages) as $package) { if (null === $pkg = $installedRepo->findPackage($package['name'], '*')) { $io->writeError(sprintf('<error>Package %s is not installed</>', $package['name'])); return 1; } $dev = false; foreach ($lockData['packages-dev'] as $p) { if ($package['name'] === $p['name']) { $dev = true; break; } } $op->addPackage($pkg->getName(), $pkg->getVersion(), $dev); } $unpacker = new Unpacker($composer, $this->resolver, $dryRun); $result = $unpacker->unpack($op); // remove the packages themselves if (!$result->getUnpacked()) { $io->writeError('<info>Nothing to unpack</>'); return 0; } $io->writeError('<info>Unpacking Symfony packs</>'); foreach ($result->getUnpacked() as $pkg) { $io->writeError(sprintf(' - Unpacked <info>%s</>', $pkg->getName())); } $unpacker->updateLock($result, $io); if ($input->hasOption('no-install') && $input->getOption('no-install')) { return 0; } $composer = Factory::create($io, null, true); $installer = Installer::create($io, $composer); $installer ->setDryRun($dryRun) ->setDevMode(true) ->setDumpAutoloader(false) ->setIgnorePlatformRequirements(true) ->setUpdate(true) ; if (method_exists($installer, 'setUpdateAllowList')) { $installer->setUpdateAllowList(['php']); } else { $installer->setUpdateWhiteList(['php']); } if (method_exists($composer->getEventDispatcher(), 'setRunScripts')) { $composer->getEventDispatcher()->setRunScripts(false); } else { $installer->setRunScripts(false); } if (method_exists($installer, 'setSkipSuggest')) { $installer->setSkipSuggest(true); } return $installer->run(); } }