SystemController final readonly class
Minn\Admin\SystemController · public/minn/src/Minn/Admin/SystemController.php · 73 lines
The System view: diagnostics, the scheduled-post list, autoloaded options, and the logs.
Uses 11
Used by 1
Constants and properties
| private | readonly Minn\Ops\Diagnostics $diagnostics | Promoted from the constructor. |
| private | readonly Minn\Ops\Logs $logs | Promoted from the constructor. |
| private | readonly Minn\Rest\Caller $caller | Promoted from the constructor. |
Public
| new | __construct(Minn\Ops\Diagnostics $diagnostics, Minn\Ops\Logs $logs, Minn\Rest\Caller $caller)# | |
| method | system(Minn\Http\Request $request): Minn\Http\ResponseGET /minn-admin/v1/system (cap manage_options)# | The System view's payload. |
| method | cron(Minn\Http\Request $request): Minn\Http\ResponseGET /minn-admin/v1/system/cron (cap manage_options)# | The scheduled posts. |
| method | autoload(Minn\Http\Request $request): Minn\Http\ResponseGET /minn-admin/v1/system/autoload (cap manage_options)# | The autoloaded options. |
| method | config(Minn\Http\Request $request): Minn\Http\ResponsePOST /minn-admin/v1/system/config (cap manage_options)# | The engine never rewrites wp-config.php; the file is the site's, edited by hand. |
| method | logs(Minn\Http\Request $request): Minn\Http\ResponseGET /minn-admin/v1/system/logs (cap manage_options)# | The logs list. |
| method | log(Minn\Http\Request $request, string $id): Minn\Http\ResponseGET /minn-admin/v1/system/logs/{id:[a-zA-Z0-9:_.\-]+} (cap manage_options)# | One log's tail. |
| method | clearLog(Minn\Http\Request $request, string $id): Minn\Http\ResponseDELETE /minn-admin/v1/system/logs/{id:[a-zA-Z0-9:_.\-]+} (cap manage_options)# | Empties one log. |
| method | debugLog(Minn\Http\Request $request): Minn\Http\ResponseGET /minn-admin/v1/system/debug-log (cap manage_options)# | The debug log's tail. |
| method | clearDebugLog(Minn\Http\Request $request): Minn\Http\ResponseDELETE /minn-admin/v1/system/debug-log (cap manage_options)# | Empties the debug log. |
Nothing matches.