API / Minn\Admin / UpdatesController

UpdatesController final readonly class

Minn\Admin\UpdatesController · public/minn/src/Minn/Admin/UpdatesController.php · 129 lines

The minn-admin/v1 update routes: offers, directory meta, the check, the installs, the auto-update lists.

Used by 1

Constants and properties

privatereadonly Minn\Ops\Updates $updates

Promoted from the constructor.

privatereadonly Minn\Ops\CoreStatus $core

Promoted from the constructor.

privatereadonly Minn\Rest\Caller $caller

Promoted from the constructor.

Public

new__construct(Minn\Ops\Updates $updates, Minn\Ops\CoreStatus $core, Minn\Rest\Caller $caller)#
methodpluginUpdates(Minn\Http\Request $request): Minn\Http\ResponseGET /minn-admin/v1/plugin-updates (signed in)#

The plugin update offers.

methodpluginMeta(Minn\Http\Request $request): Minn\Http\ResponseGET /minn-admin/v1/plugin-meta (signed in)#

Icons and details for the installed plugins.

methodcheck(Minn\Http\Request $request): Minn\Http\ResponsePOST /minn-admin/v1/check-updates (signed in)#

Asks the Minn update service again, now: for plugin and theme offers, and for Minn itself (its status answered as core).

methodupdatePlugin(Minn\Http\Request $request): Minn\Http\ResponsePOST /minn-admin/v1/plugins/update (signed in)#

Updates one plugin.

methodupdateAll(Minn\Http\Request $request): Minn\Http\ResponsePOST /minn-admin/v1/plugins/update-all (signed in)#

Updates every plugin with an offer.

methodupdateTheme(Minn\Http\Request $request): Minn\Http\ResponsePOST /minn-admin/v1/themes/update (signed in)#

Updates one theme.

methodautoUpdates(Minn\Http\Request $request): Minn\Http\ResponsePOST /minn-admin/v1/auto-updates#

Turns auto-updates on or off for one asset.