V1Controller final readonly class
Minn\Admin\V1Controller · public/minn/src/Minn/Admin/V1Controller.php · 80 lines
The boot burst of minn-admin/v1: the bell feed and its read marker, the core status, and the one-round-trip boot-status the app starts from. Every route sits behind the same capability floor (edit_posts) the plugin declares.
Constants and properties
| private | readonly Minn\Db $db | Promoted from the constructor. |
| private | readonly Minn\Admin\Notifications $notifications | Promoted from the constructor. |
| private | readonly Minn\Ops\CoreStatus $core | Promoted from the constructor. |
| private | readonly Minn\Admin\AdminTypes $types | Promoted from the constructor. |
| private | readonly Minn\Rest\Caller $caller | Promoted from the constructor. |
Public
| new | __construct(Minn\Db $db, Minn\Admin\Notifications $notifications, Minn\Ops\CoreStatus $core, Minn\Admin\AdminTypes $types, Minn\Rest\Caller $caller)# | |
| method | notifications(Minn\Http\Request $request): Minn\Http\ResponseGET /minn-admin/v1/notifications (floor edit_posts)# | The bell feed. |
| method | notificationsRead(Minn\Http\Request $request): Minn\Http\ResponsePOST /minn-admin/v1/notifications/read (floor edit_posts)# | Body {id} marks one read; {} marks all read. |
| method | core(Minn\Http\Request $request): Minn\Http\ResponseGET /minn-admin/v1/core (floor edit_posts)# | Minn's version and any newer release; a day-old check of the update service runs once the answer is sent. |
| method | coreUpdate(Minn\Http\Request $request): Minn\Http\ResponsePOST /minn-admin/v1/core/update (floor edit_posts + update_core)# | Replaces the running engine with the release on offer. |
| method | bootStatus(Minn\Http\Request $request): Minn\Http\ResponseGET /minn-admin/v1/boot-status (floor edit_posts)# | The app's one-round-trip boot burst. Absent sections are the contract's own fallback: the client loads a missing section standalone. The engine serves what it can honestly answer and omits the plugin-inventory sections it has no installation for. |
Internals 1
Private and protected methods: how the class does its work. Not a contract; they change whenever the code is tidied.
| private | checkingReleases(Minn\Http\Response $response): Minn\Http\Response# | The answer, with the update service asked about Minn's releases after it is sent when the last check is a day old. |
Nothing matches.