\App\GatewayModule\Models\PackageManagersUnsupportedPackageManager

Adapter for unsupported package manager

Summary

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

Methods

install()

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

Installs the packages

Parameters

callable $callback

Callback

string[] $packages

Packages to install

Throws

\App\GatewayModule\Exceptions\UnsupportedPackageManagerException

listUpgradable()

listUpgradable(callable  $callback) : void

Lists upgradable packages

Parameters

callable $callback

Callback

Throws

\App\GatewayModule\Exceptions\UnsupportedPackageManagerException

getUpgradable()

getUpgradable() : array

Returns list of upgradable packages

Throws

\App\GatewayModule\Exceptions\UnsupportedPackageManagerException

Returns

array —

Upgradable packages

purge()

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

Purges the packages

Parameters

callable $callback

Callback

string[] $packages

Packages to purge

Throws

\App\GatewayModule\Exceptions\UnsupportedPackageManagerException

remove()

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

Removes the packages

Parameters

callable $callback

Callback

string[] $packages

Packages to remove

Throws

\App\GatewayModule\Exceptions\UnsupportedPackageManagerException

update()

update(callable  $callback) : void

Updates a list of packages

Parameters

callable $callback

Callback

Throws

\App\GatewayModule\Exceptions\UnsupportedPackageManagerException

upgrade()

upgrade(callable  $callback) : void

Upgrades packages

Parameters

callable $callback

Callback

Throws

\App\GatewayModule\Exceptions\UnsupportedPackageManagerException