Composer API
Class

Composer\Installer\NoopInstaller

class NoopInstaller implements InstallerInterface

Does not install anything but marks packages installed in the repo

Useful for dry runs

Methods

bool supports(string $packageType)

Decides if the installer supports the given type

bool isInstalled(InstalledRepositoryInterface $repo, PackageInterface $package)

Checks that provided package is installed.

install(InstalledRepositoryInterface $repo, PackageInterface $package)

Installs specific package.

update(InstalledRepositoryInterface $repo, PackageInterface $initial, PackageInterface $target)

Updates specific package.

uninstall(InstalledRepositoryInterface $repo, PackageInterface $package)

Uninstalls specific package.

string getInstallPath(PackageInterface $package)

Returns the installation path of a package

Details

at line 30
public bool supports(string $packageType)

Decides if the installer supports the given type

Parameters

string $packageType

Return Value

bool

at line 38
public bool isInstalled(InstalledRepositoryInterface $repo, PackageInterface $package)

Checks that provided package is installed.

Parameters

InstalledRepositoryInterface $repo repository in which to check
PackageInterface $package package instance

Return Value

bool

at line 46
public install(InstalledRepositoryInterface $repo, PackageInterface $package)

Installs specific package.

Parameters

InstalledRepositoryInterface $repo repository in which to check
PackageInterface $package package instance

at line 56
public update(InstalledRepositoryInterface $repo, PackageInterface $initial, PackageInterface $target)

Updates specific package.

Parameters

InstalledRepositoryInterface $repo repository in which to check
PackageInterface $initial already installed package version
PackageInterface $target updated version

Exceptions

InvalidArgumentException if $initial package is not installed

at line 71
public uninstall(InstalledRepositoryInterface $repo, PackageInterface $package)

Uninstalls specific package.

Parameters

InstalledRepositoryInterface $repo repository in which to check
PackageInterface $package package instance

at line 82
public string getInstallPath(PackageInterface $package)

Returns the installation path of a package

Parameters

PackageInterface $package

Return Value

string path