MATCH_NAME
MATCH_NAME = -1
A package pool contains repositories that provide packages.
addRepository(\Composer\Repository\RepositoryInterface $repo, array $rootAliases = array())
Adds a repository and its packages to this package pool
\Composer\Repository\RepositoryInterface | $repo | A package repository |
array | $rootAliases |
getPriority(\Composer\Repository\RepositoryInterface $repo)
\Composer\Repository\RepositoryInterface | $repo |
packageById(integer $id) : \Composer\Package\PackageInterface
Retrieves the package object for a given package id.
integer | $id |
whatProvides(string $name, \Composer\Semver\Constraint\ConstraintInterface $constraint = null, boolean $mustMatchName = false, boolean $bypassFilters = false) : array<mixed,\Composer\Package\PackageInterface>
Searches all packages providing the given package name and match the constraint
string | $name | The package name to be searched for |
\Composer\Semver\Constraint\ConstraintInterface | $constraint | A constraint that all returned packages must match or null to return all |
boolean | $mustMatchName | Whether the name of returned packages must match the given name |
boolean | $bypassFilters | If enabled, filterRequires and stability matching is ignored |
A set of packages
match(\Composer\Package\PackageInterface $candidate, string $name, \Composer\Semver\Constraint\ConstraintInterface $constraint = null, $bypassFilters) : integer
Checks if the package matches the given constraint directly or through provided or replaced packages
\Composer\Package\PackageInterface | $candidate | |
string | $name | Name of the package to be matched |
\Composer\Semver\Constraint\ConstraintInterface | $constraint | The constraint to verify |
$bypassFilters |
One of the MATCH* constants of this class or 0 if there is no match