API / Minn\Cli / CoreCommand

CoreCommand final class

Minn\Cli\CoreCommand · public/minn/src/Minn/Cli/CoreCommand.php · 112 lines

WP-CLI's core verbs where a host's automation meets a Minn site. A Minn site has none of WordPress's core files, so a WordPress core update neither applies nor may pretend to: `core update` says the site is up to date (Minn reports the latest release it speaks) and refuses outright when asked for a version or a package, and `core download` is held back over a Minn install, since it would put WordPress's files over the engine. `core verify-checksums` checks the engine's own files against its signed release. Minn's own updater is `wp minn update`.

Used by 1

Constants and properties

privateREFUSAL = 'This site runs Minn Engine, which keeps WordPress\'s API but none of its core files, so a WordPress core update does not apply. Update Minn instead: wp minn update.'

Public

staticupdate(array $args, array $assocArgs): void#

Says whether WordPress core is up to date; on Minn it always is, and an asked-for version or package is refused.

## OPTIONS

[<zip>] : A WordPress package; refused on Minn.

[--minor] : Only a minor release.

[--version=<version>] : A WordPress version; refused on Minn.

[--force] : Refused on Minn.

[--locale=<locale>] : Ignored.

[--insecure] : Ignored.

$argslist<string>
$assocArgsarray<string, string|bool>
staticverifyChecksums(array $args, array $assocArgs): void#

Checks the install's files against its signed Minn release, in WP-CLI's own words for the result.

## OPTIONS

[--include-root] : Ignored; the webroot's shape files are always checked.

[--version=<version>] : Ignored; the running Minn's release is the one checked.

[--locale=<locale>] : Ignored.

[--insecure] : Ignored.

[--exclude=<files>] : Comma-separated paths to leave out of the result.

$argslist<string>
$assocArgsarray<string, string|bool>
staticguardDownload(): void#

Holds back `core download` over a Minn install unless MINN_ALLOW_CORE_DOWNLOAD is set; `wp minn eject` is the way back to WordPress.

Internals 2

Private and protected methods: how the class does its work. Not a contract; they change whenever the code is tidied.

privateroot(): string#

The webroot WP-CLI works in: its --path, else the current directory.

privaterunsMinn(string $root): bool#

Whether the webroot boots the engine: its wp-settings.php hands off to minn/bootstrap.php.