API / Minn\Runtime / EarlyRequest

EarlyRequest final class

Minn\Runtime\EarlyRequest · public/minn/src/Minn/Runtime/EarlyRequest.php · 50 lines

The request as WordPress's earliest functions see it, before the runtime is up: a page cache's advanced-cache.php runs then, as the reference runs it, ahead of the database, the options and the plugins. What the reference knows at that point comes from the request and from the constants its entry files define first (WP_ADMIN for an admin page, DOING_AJAX for admin-ajax.php, DOING_CRON for wp-cron.php), which the engine defines from the same rules it boots by (declare()).

Used by 1

Public

staticdeclare(Minn\Http\Request $request): void#

Defines the request's kind as the reference's entry file would have before anything loaded.

staticmarkThemed(Minn\Http\Request $request): void#

WordPress's index.php says its requests use themes before any plugin loads; its own scripts (sign-in, the admin, cron, XML-RPC) do not, and neither does Minn Admin (probe load-remaining).

staticisAdmin(): bool#

Whether this is an admin request (is_admin): what the entry file said.

staticsecure(): bool#

Whether the request came over HTTPS (is_ssl), as the server reports it.

staticinstalling(): bool#

Whether WordPress is installing (wp_installing): what WP_INSTALLING says.