API / Minn\Ops / CoreStatus

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

privatereadonly Minn\Ops\Releases $releases

Promoted from the constructor.

privatereadonly Minn\Ops\EngineUpdate $engine

Promoted from the constructor.

privatereadonly string $version

Promoted from the constructor.

Public

new__construct(Minn\Ops\Releases $releases, Minn\Ops\EngineUpdate $engine, string $version)#
methoddata(): array#

Minn's version, any offer, and when the update service was last asked.

methoddue(): bool#

Whether the update service was last asked a day ago or more.

methodrefresh(): void#

Asks the update service now.

methodupdate(): string#

Installs the release on offer; the version now in place.