Properties

$config

$config : 

Type

$repoConfig

$repoConfig : 

Type

$options

$options : 

Type

$url

$url : 

Type

$baseUrl

$baseUrl : 

Type

$io

$io : 

Type

$rfs

$rfs : 

Type

$cache

$cache : 

Type

$notifyUrl

$notifyUrl : 

Type

$searchUrl

$searchUrl : 

Type

$hasProviders

$hasProviders : 

Type

$providersUrl

$providersUrl : 

Type

$lazyProvidersUrl

$lazyProvidersUrl : 

Type

$providerListing

$providerListing : 

Type

$providers

$providers : 

Type

$providersByUid

$providersByUid : 

Type

$loader

$loader : 

Type

$rootAliases

$rootAliases : 

Type

$allowSslDowngrade

$allowSslDowngrade : 

Type

$eventDispatcher

$eventDispatcher : 

Type

$sourceMirrors

$sourceMirrors : 

Type

$distMirrors

$distMirrors : 

Type

$degradedMode

$degradedMode : 

Type

$rootData

$rootData : 

Type

$hasPartialPackages

$hasPartialPackages : 

Type

$partialPackagesByName

$partialPackagesByName : 

Type

Methods

findPackage()

findPackage(  $name,   $constraint) 

{@inheritDoc}

Parameters

$name
$constraint

findPackages()

findPackages(  $name,   $constraint = null) 

{@inheritDoc}

Parameters

$name
$constraint

search()

search(  $query,   $mode,   $type = null) 

{@inheritDoc}

Parameters

$query
$mode
$type

removePackage()

removePackage(\Composer\Package\PackageInterface  $package) 

Removes package from repository.

Parameters

\Composer\Package\PackageInterface $package

package instance

getPackages()

getPackages() 

{@inheritDoc}

count()

count() : integer

Returns the number of packages in this repository

Returns

integer —

Number of packages

getDependents()

getDependents(string|array<mixed,string>  $needle, \Composer\Semver\Constraint\ConstraintInterface|null  $constraint = null, boolean  $invert = false, boolean  $recurse = true, array<mixed,string>  $packagesFound = null) : array

Returns a list of links causing the requested needle packages to be installed, as an associative array with the dependent's name as key, and an array containing in order the PackageInterface and Link describing the relationship as values. If recursive lookup was requested a third value is returned containing an identically formed array up to the root package. That third value will be false in case a circular recursion was detected.

Parameters

string|array<mixed,string> $needle

The package name(s) to inspect.

\Composer\Semver\Constraint\ConstraintInterface|null $constraint

Optional constraint to filter by.

boolean $invert

Whether to invert matches to discover reasons for the package NOT to be installed.

boolean $recurse

Whether to recursively expand the requirement tree up to the root package.

array<mixed,string> $packagesFound

Used internally when recurring

Returns

array —

An associative array of arrays as described above.

getRepoConfig()

getRepoConfig() 

setRootAliases()

setRootAliases(array  $rootAliases) 

Parameters

array $rootAliases

getProviderNames()

getProviderNames() 

hasProviders()

hasProviders() 

resetPackageIds()

resetPackageIds() 

whatProvides()

whatProvides(\Composer\DependencyResolver\Pool  $pool, string  $name, boolean  $bypassFilters = false) : array|mixed

Parameters

\Composer\DependencyResolver\Pool $pool
string $name

package name

boolean $bypassFilters

If set to true, this bypasses the stability filtering, and forces a recompute without cache

Returns

array|mixed

createAliasPackage()

createAliasPackage(\Composer\Package\PackageInterface  $package,   $alias,   $prettyAlias) 

Parameters

\Composer\Package\PackageInterface $package
$alias
$prettyAlias

initialize()

initialize() 

Initializes the packages array. Mostly meant as an extension point.

loadRootServerFile()

loadRootServerFile() 

canonicalizeUrl()

canonicalizeUrl(  $url) 

Parameters

$url

loadDataFromServer()

loadDataFromServer() 

loadProviderListings()

loadProviderListings(  $data) 

Parameters

$data

loadIncludes()

loadIncludes(  $data) 

Parameters

$data

createPackage()

createPackage(array  $data,   $class = 'Composer\Package\CompletePackage') 

Parameters

array $data
$class

fetchFile()

fetchFile(  $filename,   $cacheKey = null,   $sha256 = null,   $storeLastModifiedTime = false) 

Parameters

$filename
$cacheKey
$sha256
$storeLastModifiedTime

fetchFileIfLastModified()

fetchFileIfLastModified(  $filename,   $cacheKey,   $lastModifiedTime) 

Parameters

$filename
$cacheKey
$lastModifiedTime

initializePartialPackages()

initializePartialPackages() 

This initializes the packages key of a partial packages.json that contain some packages inlined + a providers-lazy-url

This should only be called once