Properties

$file

$file : 

Type

Methods

write()

write() 

Writes writable repository.

reload()

reload() 

Forces a reload of all packages.

getCanonicalPackages()

getCanonicalPackages() : array<mixed,\Composer\Package\PackageInterface>

Get unique packages (at most one package of each name), with aliases resolved and removed.

Returns

array<mixed,\Composer\Package\PackageInterface>

__construct()

__construct(\Composer\Json\JsonFile  $repositoryFile) 

Initializes filesystem repository.

Parameters

\Composer\Json\JsonFile $repositoryFile

repository json file

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.

createAliasPackage()

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

Parameters

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

initialize()

initialize() 

Initializes repository (reads file, or remote address).