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.151
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 /
Delete
Unzip
Name
Size
Permission
Date
Action
Command
[ DIR ]
drwxrwxr-x
2022-08-07 09:39
Configurator
[ DIR ]
drwxrwxr-x
2022-08-07 09:39
Event
[ DIR ]
drwxrwxr-x
2022-08-07 09:39
Unpack
[ DIR ]
drwxrwxr-x
2022-08-07 09:39
Update
[ DIR ]
drwxrwxr-x
2022-08-07 09:39
Cache.php
5.28
KB
-rw-rw-r--
2022-08-07 09:39
ComposerRepository.php
1.49
KB
-rw-rw-r--
2022-08-07 09:39
Configurator.php
3.19
KB
-rw-rw-r--
2022-08-07 09:39
CurlDownloader.php
8.5
KB
-rw-rw-r--
2022-08-07 09:39
Downloader.php
18.51
KB
-rw-rw-r--
2022-08-07 09:39
Flex.php
43.66
KB
-rw-rw-r--
2022-08-07 09:39
GithubApi.php
6.04
KB
-rw-rw-r--
2022-08-07 09:39
InformationOperation.php
1.86
KB
-rw-rw-r--
2022-08-07 09:39
Lock.php
1.83
KB
-rw-rw-r--
2022-08-07 09:39
Options.php
2.29
KB
-rw-rw-r--
2022-08-07 09:39
PackageFilter.php
5.12
KB
-rw-rw-r--
2022-08-07 09:39
PackageJsonSynchronizer.php
8.98
KB
-rw-rw-r--
2022-08-07 09:39
PackageResolver.php
5.17
KB
-rw-rw-r--
2022-08-07 09:39
ParallelDownloader.php
9.29
KB
-rw-rw-r--
2022-08-07 09:39
Path.php
966
B
-rw-rw-r--
2022-08-07 09:39
Recipe.php
2.9
KB
-rw-rw-r--
2022-08-07 09:39
Response.php
1.95
KB
-rw-rw-r--
2022-08-07 09:39
ScriptExecutor.php
4.74
KB
-rw-rw-r--
2022-08-07 09:39
SymfonyBundle.php
3.67
KB
-rw-rw-r--
2022-08-07 09:39
TruncatedComposerRepository.php
1.51
KB
-rw-rw-r--
2022-08-07 09:39
Unpacker.php
8.61
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; use Composer\Composer; use Composer\Config\JsonConfigSource; use Composer\DependencyResolver\Pool; use Composer\Factory; use Composer\IO\IOInterface; use Composer\Json\JsonFile; use Composer\Json\JsonManipulator; use Composer\Package\Locker; use Composer\Package\Version\VersionSelector; use Composer\Plugin\PluginInterface; use Composer\Repository\CompositeRepository; use Composer\Repository\RepositorySet; use Composer\Semver\VersionParser; use Symfony\Flex\Unpack\Operation; use Symfony\Flex\Unpack\Result; class Unpacker { private $composer; private $resolver; private $dryRun; private $versionParser; public function __construct(Composer $composer, PackageResolver $resolver, bool $dryRun) { $this->composer = $composer; $this->resolver = $resolver; $this->dryRun = $dryRun; $this->versionParser = new VersionParser(); } public function unpack(Operation $op, Result $result = null, &$links = [], bool $devRequire = false): Result { if (null === $result) { $result = new Result(); } $localRepo = $this->composer->getRepositoryManager()->getLocalRepository(); foreach ($op->getPackages() as $package) { $pkg = $localRepo->findPackage($package['name'], '*'); $pkg = $pkg ?? $this->composer->getRepositoryManager()->findPackage($package['name'], $package['version'] ?: '*'); // not unpackable or no --unpack flag or empty packs (markers) if ( null === $pkg || 'symfony-pack' !== $pkg->getType() || !$op->shouldUnpack() || 0 === \count($pkg->getRequires()) + \count($pkg->getDevRequires()) ) { $result->addRequired($package['name'].($package['version'] ? ':'.$package['version'] : '')); continue; } if (!$result->addUnpacked($pkg)) { continue; } $requires = []; foreach ($pkg->getRequires() as $link) { $requires[$link->getTarget()] = $link; } $devRequires = $pkg->getDevRequires(); foreach ($devRequires as $i => $link) { if (!isset($requires[$link->getTarget()])) { throw new \RuntimeException(sprintf('Symfony pack "%s" must duplicate all entries from "require-dev" into "require" but entry "%s" was not found.', $package['name'], $link->getTarget())); } $devRequires[$i] = $requires[$link->getTarget()]; unset($requires[$link->getTarget()]); } $versionSelector = null; foreach ([$requires, $devRequires] as $dev => $requires) { $dev = $dev ?: $devRequire ?: $package['dev']; foreach ($requires as $link) { if ('php' === $linkName = $link->getTarget()) { continue; } $constraint = $link->getPrettyConstraint(); $constraint = substr($this->resolver->parseVersion($linkName, $constraint, true), 1) ?: $constraint; if ($subPkg = $localRepo->findPackage($linkName, '*')) { if ('symfony-pack' === $subPkg->getType()) { $subOp = new Operation(true, $op->shouldSort()); $subOp->addPackage($subPkg->getName(), $constraint, $dev); $result = $this->unpack($subOp, $result, $links, $dev); continue; } if ('*' === $constraint) { if (null === $versionSelector) { $pool = class_exists(RepositorySet::class) ? RepositorySet::class : Pool::class; $pool = new $pool($this->composer->getPackage()->getMinimumStability(), $this->composer->getPackage()->getStabilityFlags()); $pool->addRepository(new CompositeRepository($this->composer->getRepositoryManager()->getRepositories())); $versionSelector = new VersionSelector($pool); } $constraint = $versionSelector->findRecommendedRequireVersion($subPkg); } } $linkType = $dev ? 'require-dev' : 'require'; $constraint = $this->versionParser->parseConstraints($constraint); if (isset($links[$linkName])) { $links[$linkName]['constraints'][] = $constraint; if ('require' === $linkType) { $links[$linkName]['type'] = 'require'; } } else { $links[$linkName] = [ 'type' => $linkType, 'name' => $linkName, 'constraints' => [$constraint], ]; } } } } if ($this->dryRun || 1 < \func_num_args()) { return $result; } $jsonPath = Factory::getComposerFile(); $jsonContent = file_get_contents($jsonPath); $jsonStored = json_decode($jsonContent, true); $jsonManipulator = new JsonManipulator($jsonContent); foreach ($links as $link) { // nothing to do, package is already present in the "require" section if (isset($jsonStored['require'][$link['name']])) { continue; } if (isset($jsonStored['require-dev'][$link['name']])) { // nothing to do, package is already present in the "require-dev" section if ('require-dev' === $link['type']) { continue; } // removes package from "require-dev", because it will be moved to "require" // save stored constraint $link['constraints'][] = $this->versionParser->parseConstraints($jsonStored['require-dev'][$link['name']]); $jsonManipulator->removeSubNode('require-dev', $link['name']); } $constraint = end($link['constraints']); if (!$jsonManipulator->addLink($link['type'], $link['name'], $constraint->getPrettyString(), $op->shouldSort())) { throw new \RuntimeException(sprintf('Unable to unpack package "%s".', $link['name'])); } } file_put_contents($jsonPath, $jsonManipulator->getContents()); return $result; } public function updateLock(Result $result, IOInterface $io): void { $json = new JsonFile(Factory::getComposerFile()); $manipulator = new JsonConfigSource($json); $locker = $this->composer->getLocker(); $lockData = $locker->getLockData(); foreach ($result->getUnpacked() as $package) { $manipulator->removeLink('require-dev', $package->getName()); foreach ($lockData['packages-dev'] as $i => $pkg) { if ($package->getName() === $pkg['name']) { unset($lockData['packages-dev'][$i]); } } $manipulator->removeLink('require', $package->getName()); foreach ($lockData['packages'] as $i => $pkg) { if ($package->getName() === $pkg['name']) { unset($lockData['packages'][$i]); } } } $jsonContent = file_get_contents($json->getPath()); $lockData['packages'] = array_values($lockData['packages']); $lockData['packages-dev'] = array_values($lockData['packages-dev']); $lockData['content-hash'] = Locker::getContentHash($jsonContent); $lockFile = new JsonFile(substr($json->getPath(), 0, -4).'lock', null, $io); if (!$this->dryRun) { $lockFile->write($lockData); } // force removal of files under vendor/ if (version_compare('2.0.0', PluginInterface::PLUGIN_API_VERSION, '>')) { $locker = new Locker($io, $lockFile, $this->composer->getRepositoryManager(), $this->composer->getInstallationManager(), $jsonContent); } else { $locker = new Locker($io, $lockFile, $this->composer->getInstallationManager(), $jsonContent); } $this->composer->setLocker($locker); } }