PackagesController final readonly class
Minn\Admin\PackagesController · public/minn/src/Minn/Admin/PackagesController.php · 113 lines
Adding and removing themes and extensions from the Extensions view.
Uses 14
Used by 1
Constants and properties
| private | readonly Minn\Ops\Packages $packages | Promoted from the constructor. |
| private | readonly Minn\Content\Site $site | Promoted from the constructor. |
| private | readonly Minn\Rest\Caller $caller | Promoted from the constructor. |
Public
| new | __construct(Minn\Ops\Packages $packages, Minn\Content\Site $site, Minn\Rest\Caller $caller)# | |
| method | searchThemes(Minn\Http\Request $request): Minn\Http\ResponseGET /minn-admin/v1/themes/search (floor edit_posts + install_themes)# | Searches the theme directory. |
| method | installTheme(Minn\Http\Request $request): Minn\Http\ResponsePOST /minn-admin/v1/themes/install (floor edit_posts + install_themes)# | Installs a theme from the directory by slug. |
| method | uploadTheme(Minn\Http\Request $request): Minn\Http\ResponsePOST /minn-admin/v1/themes/upload (floor edit_posts + install_themes)# | Installs a theme from an uploaded zip. |
| method | deleteTheme(Minn\Http\Request $request): Minn\Http\ResponsePOST /minn-admin/v1/themes/delete (floor edit_posts + delete_themes)# | Deletes an inactive theme. |
| method | uploadPlugin(Minn\Http\Request $request): Minn\Http\ResponsePOST /minn-admin/v1/plugins/upload (floor edit_posts + install_plugins)# | A plugin zip: a WordPress plugin or a Minn extension. |
| method | installFromUrl(Minn\Http\Request $request): Minn\Http\ResponsePOST /minn-admin/v1/plugins/install-url (floor edit_posts + install_plugins)# | A zip URL, or a GitHub owner/repo whose latest release carries a zip asset. |
| method | searchPlugins(Minn\Http\Request $request): Minn\Http\ResponseGET /minn-admin/v1/plugins/search (floor edit_posts + install_plugins)# | Searches the plugin directory. |
| method | pluginInfo(Minn\Http\Request $request): Minn\Http\ResponseGET /minn-admin/v1/plugins/info (floor edit_posts + install_plugins)# | One directory plugin's details. |
Internals 1
Private and protected methods: how the class does its work. Not a contract; they change whenever the code is tidied.
| private | uploaded(Minn\Http\Request $request, string $kind): string# |
Nothing matches.