Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RepositorySet.php

function RepositorySet::isPackageAcceptable

Check for each given package name whether it would be accepted by this RepositorySet in the given $stability

Parameters

string[] $names:

key-of<BasePackage::STABILITIES> $stability one of 'stable', 'RC', 'beta', 'alpha' or 'dev':

1 call to RepositorySet::isPackageAcceptable()
RepositorySet::findPackages in vendor/composer/composer/src/Composer/Repository/RepositorySet.php
Find packages providing or matching a name and optionally meeting a constraint in all repositories

File

vendor/composer/composer/src/Composer/Repository/RepositorySet.php, line 307

Class

RepositorySet
@author Nils Adermann <naderman@naderman.de>

Namespace

Composer\Repository

Code

public function isPackageAcceptable(array $names, string $stability) : bool {
    return StabilityFilter::isPackageAcceptable($this->acceptableStabilities, $this->stabilityFlags, $names, $stability);
}
RSS feed
Powered by Drupal