Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.1
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
php /
Composer /
Repository /
[ HOME SHELL ]
Name
Size
Permission
Action
Pear
[ DIR ]
drwxr-xr-x
Vcs
[ DIR ]
drwxr-xr-x
ArrayRepository.php
5.58
KB
-rw-r--r--
ArtifactRepository.php
4.88
KB
-rw-r--r--
BaseRepository.php
7.61
KB
-rw-r--r--
ComposerRepository.php
31.13
KB
-rw-r--r--
CompositeRepository.php
3.83
KB
-rw-r--r--
ConfigurableRepositoryInterfac...
478
B
-rw-r--r--
FilesystemRepository.php
2.23
KB
-rw-r--r--
InstalledArrayRepository.php
584
B
-rw-r--r--
InstalledFilesystemRepository....
504
B
-rw-r--r--
InstalledRepositoryInterface.p...
579
B
-rw-r--r--
InvalidRepositoryException.php
479
B
-rw-r--r--
PackageRepository.php
1.59
KB
-rw-r--r--
PathRepository.php
5.14
KB
-rw-r--r--
PearRepository.php
8.54
KB
-rw-r--r--
PlatformRepository.php
10.57
KB
-rw-r--r--
RepositoryFactory.php
6.71
KB
-rw-r--r--
RepositoryInterface.php
2.18
KB
-rw-r--r--
RepositoryManager.php
5.42
KB
-rw-r--r--
RepositorySecurityException.ph...
482
B
-rw-r--r--
VcsRepository.php
11.18
KB
-rw-r--r--
WritableArrayRepository.php
1.48
KB
-rw-r--r--
WritableRepositoryInterface.ph...
1.22
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : CompositeRepository.php
<?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\Repository; use Composer\Package\PackageInterface; /** * Composite repository. * * @author Beau Simensen <beau@dflydev.com> */ class CompositeRepository extends BaseRepository { /** * List of repositories * @var array */ private $repositories; /** * Constructor * @param array $repositories */ public function __construct(array $repositories) { $this->repositories = array(); foreach ($repositories as $repo) { $this->addRepository($repo); } } /** * Returns all the wrapped repositories * * @return array */ public function getRepositories() { return $this->repositories; } /** * {@inheritdoc} */ public function hasPackage(PackageInterface $package) { foreach ($this->repositories as $repository) { /* @var $repository RepositoryInterface */ if ($repository->hasPackage($package)) { return true; } } return false; } /** * {@inheritdoc} */ public function findPackage($name, $constraint) { foreach ($this->repositories as $repository) { /* @var $repository RepositoryInterface */ $package = $repository->findPackage($name, $constraint); if (null !== $package) { return $package; } } return null; } /** * {@inheritdoc} */ public function findPackages($name, $constraint = null) { $packages = array(); foreach ($this->repositories as $repository) { /* @var $repository RepositoryInterface */ $packages[] = $repository->findPackages($name, $constraint); } return $packages ? call_user_func_array('array_merge', $packages) : array(); } /** * {@inheritdoc} */ public function search($query, $mode = 0, $type = null) { $matches = array(); foreach ($this->repositories as $repository) { /* @var $repository RepositoryInterface */ $matches[] = $repository->search($query, $mode, $type); } return $matches ? call_user_func_array('array_merge', $matches) : array(); } /** * {@inheritdoc} */ public function getPackages() { $packages = array(); foreach ($this->repositories as $repository) { /* @var $repository RepositoryInterface */ $packages[] = $repository->getPackages(); } return $packages ? call_user_func_array('array_merge', $packages) : array(); } /** * {@inheritdoc} */ public function removePackage(PackageInterface $package) { foreach ($this->repositories as $repository) { /* @var $repository RepositoryInterface */ $repository->removePackage($package); } } /** * {@inheritdoc} */ public function count() { $total = 0; foreach ($this->repositories as $repository) { /* @var $repository RepositoryInterface */ $total += $repository->count(); } return $total; } /** * Add a repository. * @param RepositoryInterface $repository */ public function addRepository(RepositoryInterface $repository) { if ($repository instanceof self) { foreach ($repository->getRepositories() as $repo) { $this->addRepository($repo); } } else { $this->repositories[] = $repository; } } }
Close