Skip to content
docsv0.34.0

HouseSource

WHAT THIS HOUSE IS, standing — the facts the panel's first screen is made of. ── WHY THERE IS A FIRST SCREEN AT ALL ─────────────────────────────────────────────────────────── The panel used to open on Plugins, and NOBODY CHOSE THAT: `SectionCatalogue::first()` returns the lowest `(order, id)`, Plugins declared `order: 10`, and it won. So a human who had just installed the framework was met by a table of PHP class names — `Milpa\Admin\AdminPlugin`, `App\Plugins\HelloPlugin\HelloPlugin`. That is `decisions/0260`'s lesson one room further in: the door stopped lecturing about what kind of framework this is, and the room behind it opened with a list of namespaces (greenhouse decisions/0264). ── IT COMPOSES, IT DOES NOT GATHER ────────────────────────────────────────────────────────────── Every figure here already existed somewhere in this package; it was presented as an appendix under a class table. So this reads the SAME sources the other sections read — a second way to count plugins would be a second answer to one question. What it adds is the two facts nobody was asking for: what this house was FOUNDED to do, and which of the framework's own packages it runs. ── WHAT IT DELIBERATELY DOES NOT KNOW ─────────────────────────────────────────────────────────── Who this house recognises — the credential ledger — belongs to `milpa/app-runtime`, which owns the passkey. Reaching into its storage path from here would be this package guessing another's convention. The identity section is its to declare; this screen says only what the SHELL already told it: the gate in effect and the principal, if any.

HouseSource::__construct()

public function __construct(Milpa\Interfaces\Di\DIContainerInterface $container, Milpa\Admin\AdminSettings $settings, Milpa\Admin\Data\PluginsSource $plugins, Milpa\Admin\Data\RoutesSource $routes):

Parameters

Parameters of __construct()
NameTypeDescription
$containerMilpa\Interfaces\Di\DIContainerInterface
$settingsMilpa\Admin\AdminSettings
$pluginsMilpa\Admin\Data\PluginsSource
$routesMilpa\Admin\Data\RoutesSource

HouseSource::snapshot()

public function snapshot(): array

Everything the first screen paints, in one read. Composed from the sources the other sections already use, plus the two facts nobody else reports: what this house was FOUNDED to do, and which of the framework's own packages it runs.