PHP Класс Monorepo\Composer\MonorepoInstalledRepository

Наследование: implements Composer\Repository\InstalledRepositoryInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
addPackage ( Composer\Package\PackageInterface $package ) Adds package to the repository.
count ( )
findPackage ( string $name, string $version ) : Composer\Package\PackageInterface | null Searches for the first match of a package by name and version.
findPackages ( string $name, string $version = null ) : array Searches for all packages matching a name and optionally a version.
getCanonicalPackages ( ) : Composer\Package\PackageInterface[] Get unique packages, with aliases resolved and removed
getPackages ( ) : array Returns list of registered packages.
hasPackage ( Composer\Package\PackageInterface $package ) : boolean Checks if specified package registered (installed).
reload ( ) Forces a reload of all packages
removePackage ( Composer\Package\PackageInterface $package ) Removes package from the repository.
search ( string $query, integer $mode ) : array[] Searches the repository for packages containing the query
write ( ) Writes repository (f.e. to the disc).

Описание методов

addPackage() публичный Метод

Adds package to the repository.
public addPackage ( Composer\Package\PackageInterface $package )
$package Composer\Package\PackageInterface package instance

count() публичный Метод

public count ( )

findPackage() публичный Метод

Searches for the first match of a package by name and version.
public findPackage ( string $name, string $version ) : Composer\Package\PackageInterface | null
$name string package name
$version string package version
Результат Composer\Package\PackageInterface | null

findPackages() публичный Метод

Searches for all packages matching a name and optionally a version.
public findPackages ( string $name, string $version = null ) : array
$name string package name
$version string package version
Результат array

getCanonicalPackages() публичный Метод

Get unique packages, with aliases resolved and removed
public getCanonicalPackages ( ) : Composer\Package\PackageInterface[]
Результат Composer\Package\PackageInterface[]

getPackages() публичный Метод

Returns list of registered packages.
public getPackages ( ) : array
Результат array

hasPackage() публичный Метод

Checks if specified package registered (installed).
public hasPackage ( Composer\Package\PackageInterface $package ) : boolean
$package Composer\Package\PackageInterface package instance
Результат boolean

reload() публичный Метод

Forces a reload of all packages
public reload ( )

removePackage() публичный Метод

Removes package from the repository.
public removePackage ( Composer\Package\PackageInterface $package )
$package Composer\Package\PackageInterface package instance

write() публичный Метод

Writes repository (f.e. to the disc).
public write ( )