Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
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 /
DependencyResolver /
Delete
Unzip
Name
Size
Permission
Date
Action
Operation
[ DIR ]
drwxr-xr-x
2026-07-12 06:24
Decisions.php
6.09
KB
-rw-r--r--
2023-03-21 10:50
DefaultPolicy.php
8.5
KB
-rw-r--r--
2023-03-21 10:50
GenericRule.php
1.91
KB
-rw-r--r--
2023-03-21 10:50
LocalRepoTransaction.php
814
B
-rw-r--r--
2023-03-21 10:50
LockTransaction.php
5.52
KB
-rw-r--r--
2023-03-21 10:50
MultiConflictRule.php
2.56
KB
-rw-r--r--
2023-03-21 10:50
PolicyInterface.php
859
B
-rw-r--r--
2023-03-21 10:50
Pool.php
8.21
KB
-rw-r--r--
2023-03-21 10:50
PoolBuilder.php
30.46
KB
-rw-r--r--
2023-03-21 10:50
PoolOptimizer.php
18.97
KB
-rw-r--r--
2023-03-21 10:50
Problem.php
27.26
KB
-rw-r--r--
2023-03-21 10:50
Request.php
7.83
KB
-rw-r--r--
2023-03-21 10:50
Rule.php
19.3
KB
-rw-r--r--
2023-03-21 10:50
Rule2Literals.php
2.61
KB
-rw-r--r--
2023-03-21 10:50
RuleSet.php
4.82
KB
-rw-r--r--
2023-03-21 10:50
RuleSetGenerator.php
12.92
KB
-rw-r--r--
2023-03-21 10:50
RuleSetIterator.php
2.54
KB
-rw-r--r--
2023-03-21 10:50
RuleWatchChain.php
1.43
KB
-rw-r--r--
2023-03-21 10:50
RuleWatchGraph.php
6.37
KB
-rw-r--r--
2023-03-21 10:50
RuleWatchNode.php
2.86
KB
-rw-r--r--
2023-03-21 10:50
Solver.php
25.71
KB
-rw-r--r--
2023-03-21 10:50
SolverBugException.php
798
B
-rw-r--r--
2023-03-21 10:50
SolverProblemsException.php
5.5
KB
-rw-r--r--
2023-03-21 10:50
Transaction.php
13.67
KB
-rw-r--r--
2023-03-21 10:50
Save
Rename
<?php declare(strict_types=1); /* * 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\DependencyResolver; use Composer\Package\AliasPackage; use Composer\Package\BasePackage; use Composer\Package\Package; /** * @author Nils Adermann <naderman@naderman.de> * @internal */ class LockTransaction extends Transaction { /** * packages in current lock file, platform repo or otherwise present * * Indexed by spl_object_hash * * @var array<string, BasePackage> */ protected $presentMap; /** * Packages which cannot be mapped, platform repo, root package, other fixed repos * * Indexed by package id * * @var array<int, BasePackage> */ protected $unlockableMap; /** * @var array{dev: BasePackage[], non-dev: BasePackage[], all: BasePackage[]} */ protected $resultPackages; /** * @param array<string, BasePackage> $presentMap * @param array<int, BasePackage> $unlockableMap */ public function __construct(Pool $pool, array $presentMap, array $unlockableMap, Decisions $decisions) { $this->presentMap = $presentMap; $this->unlockableMap = $unlockableMap; $this->setResultPackages($pool, $decisions); parent::__construct($this->presentMap, $this->resultPackages['all']); } // TODO make this a bit prettier instead of the two text indexes? public function setResultPackages(Pool $pool, Decisions $decisions): void { $this->resultPackages = ['all' => [], 'non-dev' => [], 'dev' => []]; foreach ($decisions as $i => $decision) { $literal = $decision[Decisions::DECISION_LITERAL]; if ($literal > 0) { $package = $pool->literalToPackage($literal); $this->resultPackages['all'][] = $package; if (!isset($this->unlockableMap[$package->id])) { $this->resultPackages['non-dev'][] = $package; } } } } public function setNonDevPackages(LockTransaction $extractionResult): void { $packages = $extractionResult->getNewLockPackages(false); $this->resultPackages['dev'] = $this->resultPackages['non-dev']; $this->resultPackages['non-dev'] = []; foreach ($packages as $package) { foreach ($this->resultPackages['dev'] as $i => $resultPackage) { // TODO this comparison is probably insufficient, aliases, what about modified versions? I guess they aren't possible? if ($package->getName() === $resultPackage->getName()) { $this->resultPackages['non-dev'][] = $resultPackage; unset($this->resultPackages['dev'][$i]); } } } } // TODO additionalFixedRepository needs to be looked at here as well? /** * @return BasePackage[] */ public function getNewLockPackages(bool $devMode, bool $updateMirrors = false): array { $packages = []; foreach ($this->resultPackages[$devMode ? 'dev' : 'non-dev'] as $package) { if (!$package instanceof AliasPackage) { // if we're just updating mirrors we need to reset references to the same as currently "present" packages' references to keep the lock file as-is // we do not reset references if the currently present package didn't have any, or if the type of VCS has changed if ($updateMirrors && !isset($this->presentMap[spl_object_hash($package)])) { foreach ($this->presentMap as $presentPackage) { if ($package->getName() === $presentPackage->getName() && $package->getVersion() === $presentPackage->getVersion()) { if ($presentPackage->getSourceReference() && $presentPackage->getSourceType() === $package->getSourceType()) { $package->setSourceDistReferences($presentPackage->getSourceReference()); } if ($presentPackage->getReleaseDate() !== null && $package instanceof Package) { $package->setReleaseDate($presentPackage->getReleaseDate()); } } } } $packages[] = $package; } } return $packages; } /** * Checks which of the given aliases from composer.json are actually in use for the lock file * @param list<array{package: string, version: string, alias: string, alias_normalized: string}> $aliases * @return list<array{package: string, version: string, alias: string, alias_normalized: string}> */ public function getAliases(array $aliases): array { $usedAliases = []; foreach ($this->resultPackages['all'] as $package) { if ($package instanceof AliasPackage) { foreach ($aliases as $index => $alias) { if ($alias['package'] === $package->getName()) { $usedAliases[] = $alias; unset($aliases[$index]); } } } } usort($usedAliases, static function ($a, $b): int { return strcmp($a['package'], $b['package']); }); return $usedAliases; } }