\App\GatewayModule\Models\PackageManagersIPackageManager

Interface for package managers

Summary

Methods
Constants
install()
listUpgradable()
getUpgradable()
purge()
remove()
update()
upgrade()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

install()

install(callable  $callback, string[]  $packages) : void

Installs the packages

Parameters

callable $callback

Callback

string[] $packages

Packages to install

listUpgradable()

listUpgradable(callable  $callback) : void

Lists upgradable packages

Parameters

callable $callback

Callback

getUpgradable()

getUpgradable() : array

Returns list of upgradable packages

Returns

array —

Upgradable packages

purge()

purge(callable  $callback, string[]  $packages) : void

Purges the packages

Parameters

callable $callback

Callback

string[] $packages

Packages to purge

remove()

remove(callable  $callback, string[]  $packages) : void

Removes the packages

Parameters

callable $callback

Callback

string[] $packages

Packages to remove

update()

update(callable  $callback) : void

Updates a list of packages

Parameters

callable $callback

Callback

upgrade()

upgrade(callable  $callback) : void

Upgrades packages

Parameters

callable $callback

Callback