Diagnostics final readonly class
Minn\Ops\Diagnostics · public/minn/src/Minn/Ops/Diagnostics.php · 408 lines
The System view's facts about this install: the engine, PHP, the database, and the server, with the health checks a site owner acts on. Every number is read live; nothing is cached or fetched from outside.
Constants and properties
| private | AUTOLOAD_VALUES = array ( 0 => 'yes', 1 => 'on', 2 => 'auto', 3 => 'auto-on', ) | |
| private | readonly Minn\Db $db | Promoted from the constructor. |
| private | readonly Minn\Content\Site $site | Promoted from the constructor. |
| private | readonly Minn\Front\Permalinks $permalinks | Promoted from the constructor. |
| private | readonly Minn\Ops\InstalledSoftware $software | Promoted from the constructor. |
| private | readonly Minn\Ops\Logs $logs | Promoted from the constructor. |
| private | readonly string $engineVersion | Promoted from the constructor. |
| private | readonly string $webroot | Promoted from the constructor. |
Public
| new | __construct(Minn\Db $db, Minn\Content\Site $site, Minn\Front\Permalinks $permalinks, Minn\Ops\InstalledSoftware $software, Minn\Ops\Logs $logs, string $engineVersion, string $webroot)# | |
| method | payload(Minn\Http\Request $request): array# | The System view: checks, config, logs, and the four info groups. |
| method | config(): array# | The wp-config debug constants as they stand; the engine never rewrites the file. |
| method | cron(): array# | The scheduled events: the cron option's hooks and the engine's own scheduled posts, soonest first. |
| method | autoload(): array# | The autoloaded options: the summary and the largest rows. |
Internals 16
Private and protected methods: how the class does its work. Not a contract; they change whenever the code is tidied.
| private | checks(Minn\Http\Request $request, array $autoload, array $cron, Minn\Mail\MailSettings $mail): array# | The pass / warn / fail rows the System view leads with.
@return list<array<string, string>> | ||||||
| private | engineGroup(array $cron, Minn\Mail\MailSettings $mail): array# |
| ||||||
| private | phpGroup(): array# | @return array<string, string> | ||||||
| private | serverGroup(Minn\Http\Request $request): array# | @return array<string, string> | ||||||
| private | opcacheOn(): bool# | |||||||
| private | cronOptionEvents(): array# | The cron option's events as rows, a recurring event's interval read as its recurrence and a single event marked one-off. @return list<array<string, mixed>> | ||||||
| private | humanInterval(int $seconds): string# | A recurrence interval as its two largest whole units. | ||||||
| private | autoloadSummary(): array# | |||||||
| private | cronSummary(): array# | @return array{events: int, overdue: int, next: ?int} | ||||||
| private | futurePosts(): array# | @return list<array<string, mixed>> | ||||||
| private | databaseGroup(): array# | @return array{0: array<string, string>, 1: list<array>} | ||||||
| private | check(string $key, string $label, string $status, string $detail): array# | |||||||
| private | rows(array $pairs): array# | @return list<array{key: string, value: string}> | ||||||
| private | bytes(string $value): int# | |||||||
| private | offsetLabel(float $offset): string# | |||||||
| private | relative(int $at): string# |
Nothing matches.