API / Minn\Runtime / CurrentUser

CurrentUser final class

Minn\Runtime\CurrentUser · public/minn/src/Minn/Runtime/CurrentUser.php · 13 lines

Who the request is, as the reference settles it before init: the user determine_current_user names (the engine's own session, through wp_validate_auth_cookie, when no plugin hooks it), which the request's reader then follows. A plugin that signs in by its own token or cookie (JWT, OAuth, single sign-on) is heard; one that names nobody signs the request out.

Used by 1

Public

staticsettle(Minn\Runtime\Runtime $runtime): int#

Settles the request's user and reader; returns the user's id (0 for nobody).