CoreStatus final readonly class
Minn\Ops\CoreStatus · public/minn/src/Minn/Ops/CoreStatus.php · 48 lines
The core the app's update banner and chip speak of, which on Minn is Minn: the running engine's version, a newer release on offer (Ops\Releases, asked of the update service once a day), and installing it (Ops\EngineUpdate). WordPress's own offer (the update_core transient a parked copy may write) is not Minn's to act on and is not shown. dbUpgrade is false: the database is WordPress's, and a Minn release never migrates it.
Constants and properties
| private | readonly Minn\Ops\Releases $releases | Promoted from the constructor. |
| private | readonly Minn\Ops\EngineUpdate $engine | Promoted from the constructor. |
| private | readonly string $version | Promoted from the constructor. |
Public
| new | __construct(Minn\Ops\Releases $releases, Minn\Ops\EngineUpdate $engine, string $version)# | |
| method | data(): array# | Minn's version, any offer, and when the update service was last asked. |
| method | due(): bool# | Whether the update service was last asked a day ago or more. |
| method | refresh(): void# | Asks the update service now. |
| method | update(): string# | Installs the release on offer; the version now in place. |
Nothing matches.