class UpdateChecker (View source)

The update checker class is provided a {@link Link} object representing a package and uses the Composer API to determine the next available updates for the package.

Constants

TYPE_AVAILABLE

Update types (see {@link ComposerPackageVersion}

TYPE_LATEST

Methods

string[]
checkForUpdates(PackageInterface $package, string $constraint)

Checks the given package for available and latest updates, and writes them to data models if found

Details

string[] checkForUpdates(PackageInterface $package, string $constraint)

Checks the given package for available and latest updates, and writes them to data models if found

Parameters

PackageInterface $package
string $constraint

Return Value

string[]