PHP 클래스 Monorepo\Composer\MonorepoInstalledRepository

상속: implements Composer\Repository\InstalledRepositoryInterface
파일 보기 프로젝트 열기: beberlei/composer-monorepo-plugin

공개 메소드들

메소드 설명
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 ( )