API / Minn\Cli / MaintenanceCommand

MaintenanceCommand final class

Minn\Cli\MaintenanceCommand · public/minn/src/Minn/Cli/MaintenanceCommand.php · 65 lines

`wp maintenance-mode`: the `.maintenance` marker in the webroot. The engine does not take the public site down while the file is present; fleet scripts still need the verb to succeed so an update can bookend itself with activate/deactivate.

Uses 1
Used by 1

Public

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

Activates maintenance mode.

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

Deactivates maintenance mode.

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

Displays maintenance mode status.

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

Detects maintenance mode status. Exit 0 when active, 1 when not.

Internals 1

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

privatefile(): string#