API / Minn\Front / PrintedResponse

PrintedResponse final class

Minn\Front\PrintedResponse · public/minn/src/Minn/Front/PrintedResponse.php · 39 lines

A response WordPress's handlers print themselves (a sitemap, robots.txt), as the reference serves them: the main query stood with the request's own variables and the front-end steps around it, then $print; what was printed, under the status and headers the handlers sent. A handler that ends the request early (Printed, where the reference exits) ends it here too; when none did and there is nothing to print, null, and the theme renders the page on the query as it stands.

Public

staticstand(Minn\Theme\MainQueryBridge $bridge, array $vars, ?Closure $print = NULL, ?Minn\Front\Resolution $resolution = NULL): ?Minn\Http\Response#

The request served this way, or null for the theme to render.

$varsarray<string, mixed>the request's own query variables

Internals 1

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

privatediscard(int $level): void#