API / Minn\Front / ProbeController

ProbeController final readonly class

Minn\Front\ProbeController · public/minn/src/Minn/Front/ProbeController.php · 68 lines

The surface monitors, crawlers, and hosting checks hit that is not a page: robots.txt, the XML-RPC and cron endpoints, the admin entry point, and the favicon. Feeds and sitemaps have controllers of their own.

Used by 1

Constants and properties

privatereadonly Minn\Content\Site $site

Promoted from the constructor.

privatereadonly Minn\Front\Permalinks $permalinks

Promoted from the constructor.

privatereadonly Minn\Content\SiteIcon $icon

Promoted from the constructor.

privatereadonly ?Minn\Cron\Cron $cron

Promoted from the constructor.

privatereadonly ?Minn\Theme\MainQueryBridge $bridge

Promoted from the constructor.

Public

new__construct(Minn\Content\Site $site, Minn\Front\Permalinks $permalinks, Minn\Content\SiteIcon $icon, ?Minn\Cron\Cron $cron = NULL, ?Minn\Theme\MainQueryBridge $bridge = NULL)#
methodrobots(Minn\Http\Request $request): Minn\Http\ResponseGET /robots.txt (public)#

robots.txt: with plugins loaded, the reference's (the main query a robots request, then do_robots, under do_robotstxt and robots_txt); otherwise the same lines, the sitemap's only on a public site.

methodxmlrpc(Minn\Http\Request $request): Minn\Http\Response* /xmlrpc.php (public)#

XML-RPC is not served; GET answers the way the reference does, POST is refused outright.

methodcron(Minn\Http\Request $request): Minn\Http\Response* /wp-cron.php (public)#

wp-cron.php: runs what is due.

methodadmin(Minn\Http\Request $request): Minn\Http\ResponseGET /wp-admin (public)GET /wp-admin/{rest*} (public)#

The admin is Minn Admin; the reference's admin path lands there.

methodfavicon(Minn\Http\Request $request): Minn\Http\ResponseGET /favicon.ico (public)#

The site icon, or the reference's default.