BringYourOwnIdeas\UpdateChecker\UpdateChecker
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.
Synopsis
class UpdateChecker
{
- // constants
- const TYPE_AVAILABLE = 'Available';
- const TYPE_LATEST = 'Latest';
- // members
- protected VersionSelector $versionSelector;
- // methods
- public array checkForUpdates()
- protected VersionSelector getVersionSelector()
- protected bool|PackageInterface findLatestPackage()
Constants
Name | Value |
---|---|
TYPE_AVAILABLE | 'Available' |
TYPE_LATEST | 'Latest' |
Members
protected
- $versionSelector — Composer\Package\Version\VersionSelector
Methods
protected
- findLatestPackage() — Given a package, this finds the latest package matching it
- getVersionSelector()
public
- checkForUpdates() — Checks the given package for available and latest updates, and writes them to data models if found