Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.119
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
2022-03-20 10:35
Decisions.php
5.1
KB
-rw-r--r--
2016-11-03 17:43
DefaultPolicy.php
9.12
KB
-rw-r--r--
2016-11-03 17:43
PolicyInterface.php
746
B
-rw-r--r--
2016-11-03 17:43
Pool.php
13.88
KB
-rw-r--r--
2016-11-03 17:43
Problem.php
8.69
KB
-rw-r--r--
2016-11-03 17:43
Request.php
1.91
KB
-rw-r--r--
2016-11-03 17:43
Rule.php
10.21
KB
-rw-r--r--
2016-11-03 17:43
RuleSet.php
3.74
KB
-rw-r--r--
2016-11-03 17:43
RuleSetGenerator.php
12.42
KB
-rw-r--r--
2016-11-03 17:43
RuleSetIterator.php
2.28
KB
-rw-r--r--
2016-11-03 17:43
RuleWatchChain.php
1.37
KB
-rw-r--r--
2016-11-03 17:43
RuleWatchGraph.php
5.2
KB
-rw-r--r--
2016-11-03 17:43
RuleWatchNode.php
2.69
KB
-rw-r--r--
2016-11-03 17:43
Solver.php
26.02
KB
-rw-r--r--
2016-11-03 17:43
SolverBugException.php
757
B
-rw-r--r--
2016-11-03 17:43
SolverProblemsException.php
2.85
KB
-rw-r--r--
2016-11-03 17:43
Transaction.php
7.56
KB
-rw-r--r--
2016-11-03 17:43
Save
Rename
<?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\DependencyResolver; /** * @author Nils Adermann <naderman@naderman.de> */ class RuleSet implements \IteratorAggregate, \Countable { // highest priority => lowest number const TYPE_PACKAGE = 0; const TYPE_JOB = 1; const TYPE_LEARNED = 4; /** * READ-ONLY: Lookup table for rule id to rule object * * @var Rule[] */ public $ruleById; protected static $types = array( 255 => 'UNKNOWN', self::TYPE_PACKAGE => 'PACKAGE', self::TYPE_JOB => 'JOB', self::TYPE_LEARNED => 'LEARNED', ); protected $rules; protected $nextRuleId; protected $rulesByHash; public function __construct() { $this->nextRuleId = 0; foreach ($this->getTypes() as $type) { $this->rules[$type] = array(); } $this->rulesByHash = array(); } public function add(Rule $rule, $type) { if (!isset(self::$types[$type])) { throw new \OutOfBoundsException('Unknown rule type: ' . $type); } if (!isset($this->rules[$type])) { $this->rules[$type] = array(); } $this->rules[$type][] = $rule; $this->ruleById[$this->nextRuleId] = $rule; $rule->setType($type); $this->nextRuleId++; $hash = $rule->getHash(); if (!isset($this->rulesByHash[$hash])) { $this->rulesByHash[$hash] = array($rule); } else { $this->rulesByHash[$hash][] = $rule; } } public function count() { return $this->nextRuleId; } public function ruleById($id) { return $this->ruleById[$id]; } public function getRules() { return $this->rules; } public function getIterator() { return new RuleSetIterator($this->getRules()); } public function getIteratorFor($types) { if (!is_array($types)) { $types = array($types); } $allRules = $this->getRules(); $rules = array(); foreach ($types as $type) { $rules[$type] = $allRules[$type]; } return new RuleSetIterator($rules); } public function getIteratorWithout($types) { if (!is_array($types)) { $types = array($types); } $rules = $this->getRules(); foreach ($types as $type) { unset($rules[$type]); } return new RuleSetIterator($rules); } public function getTypes() { $types = self::$types; unset($types[255]); return array_keys($types); } public function containsEqual($rule) { if (isset($this->rulesByHash[$rule->getHash()])) { $potentialDuplicates = $this->rulesByHash[$rule->getHash()]; foreach ($potentialDuplicates as $potentialDuplicate) { if ($rule->equals($potentialDuplicate)) { return true; } } } return false; } public function getPrettyString(Pool $pool = null) { $string = "\n"; foreach ($this->rules as $type => $rules) { $string .= str_pad(self::$types[$type], 8, ' ') . ": "; foreach ($rules as $rule) { $string .= ($pool ? $rule->getPrettyString($pool) : $rule)."\n"; } $string .= "\n\n"; } return $string; } public function __toString() { return $this->getPrettyString(null); } }