Skip to content
Corex

ComingSoonRequest

Corex\Config\Operations\ComingSoonRequest · class · Config layer

The facts about one request that decide what it gets while the site is in Coming soon (spec 101). Facts only, already established by whoever built this: {@see ComingSoonGuard} asks WordPress and {@see ComingSoonDecision} reads nothing but this object. Every fact defaults to “no”, so the request with nothing said about it is an anonymous visitor asking for an address that is not the home URL — the one the mode exists to turn away. Two things are absent on purpose. “Signed in” is not a fact: what admits somebody is being able to edit posts, so a subscriber and a stranger are the same request (FR-007). And an invalid preview value is not a fact either: it is the same as no value, so there is nothing here for the decision to answer differently with (FR-014).

__construct(string $mode, bool $neverIntercepted, bool $carriesValidPreview, bool $allowedByClient, bool $isRobotsOrFavicon, bool $canEditPosts, bool $asksForVisitorView, bool $holdsPreviewAccess, bool $isSitemap, bool $isHome)

Section titled “__construct(string $mode, bool $neverIntercepted, bool $carriesValidPreview, bool $allowedByClient, bool $isRobotsOrFavicon, bool $canEditPosts, bool $asksForVisitorView, bool $holdsPreviewAccess, bool $isSitemap, bool $isHome)”