class PackageManagerController (View source)

The PackageManager class provides all methods required by the dashboard to manage packages.

Properties

static private $composerFile The path to the composer.json file.

Methods

static Response
getOutdatedPackages()

Get a list of outdated packages.

static Response
getPackages()

Get a list of theme packages available on Packagist where the installed ones are at the beginning.

static Response
install()

Install a package.

static Response
remove()

Remove a package.

static Response
update()

Update a single package.

static Response
updateAll()

Update all packages.

static array
getInstalled()

Get the array of installed packages.

Details

static Response getOutdatedPackages()

Get a list of outdated packages.

Return Value

Response the response object

static Response getPackages()

Get a list of theme packages available on Packagist where the installed ones are at the beginning.

Return Value

Response the response object

static Response install()

Install a package.

Return Value

Response the response object

static Response remove()

Remove a package.

Return Value

Response the response object

static Response update()

Update a single package.

Return Value

Response the response object

static Response updateAll()

Update all packages.

Return Value

Response the response object

static private array getInstalled()

Get the array of installed packages.

Return Value

array The array with all installed packages.