API / Minn\Admin / SystemController

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.

Used by 1

Constants and properties

privatereadonly Minn\Ops\Diagnostics $diagnostics

Promoted from the constructor.

privatereadonly Minn\Ops\Logs $logs

Promoted from the constructor.

privatereadonly Minn\Rest\Caller $caller

Promoted from the constructor.

Public

new__construct(Minn\Ops\Diagnostics $diagnostics, Minn\Ops\Logs $logs, Minn\Rest\Caller $caller)#
methodsystem(Minn\Http\Request $request): Minn\Http\ResponseGET /minn-admin/v1/system (cap manage_options)#

The System view's payload.

methodcron(Minn\Http\Request $request): Minn\Http\ResponseGET /minn-admin/v1/system/cron (cap manage_options)#

The scheduled posts.

methodautoload(Minn\Http\Request $request): Minn\Http\ResponseGET /minn-admin/v1/system/autoload (cap manage_options)#

The autoloaded options.

methodconfig(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.

methodlogs(Minn\Http\Request $request): Minn\Http\ResponseGET /minn-admin/v1/system/logs (cap manage_options)#

The logs list.

methodlog(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.

methodclearLog(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.

methoddebugLog(Minn\Http\Request $request): Minn\Http\ResponseGET /minn-admin/v1/system/debug-log (cap manage_options)#

The debug log's tail.

methodclearDebugLog(Minn\Http\Request $request): Minn\Http\ResponseDELETE /minn-admin/v1/system/debug-log (cap manage_options)#

Empties the debug log.