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.
Uses 12
Used by 1
Constants and properties
| private | readonly Minn\Ops\Updates $updates | Promoted from the constructor. |
| private | readonly Minn\Ops\CoreStatus $core | Promoted from the constructor. |
| private | readonly Minn\Rest\Caller $caller | Promoted from the constructor. |
Public
| new | __construct(Minn\Ops\Updates $updates, Minn\Ops\CoreStatus $core, Minn\Rest\Caller $caller)# | |
| method | pluginUpdates(Minn\Http\Request $request): Minn\Http\ResponseGET /minn-admin/v1/plugin-updates (signed in)# | The plugin update offers. |
| method | pluginMeta(Minn\Http\Request $request): Minn\Http\ResponseGET /minn-admin/v1/plugin-meta (signed in)# | Icons and details for the installed plugins. |
| method | check(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). |
| method | updatePlugin(Minn\Http\Request $request): Minn\Http\ResponsePOST /minn-admin/v1/plugins/update (signed in)# | Updates one plugin. |
| method | updateAll(Minn\Http\Request $request): Minn\Http\ResponsePOST /minn-admin/v1/plugins/update-all (signed in)# | Updates every plugin with an offer. |
| method | updateTheme(Minn\Http\Request $request): Minn\Http\ResponsePOST /minn-admin/v1/themes/update (signed in)# | Updates one theme. |
| method | autoUpdates(Minn\Http\Request $request): Minn\Http\ResponsePOST /minn-admin/v1/auto-updates# | Turns auto-updates on or off for one asset. |
Nothing matches.