Skip to content
docsv0.44.3

ServedRoutes

What the booted house serves, asked of the house itself (greenhouse decisions/0567 §3, slice BV-2). `make` scaffolds a route; whether something already answers there is a fact of the running house — its router — not of any file this package could read. A declared screen in particular is mounted by the app runtime from its own store, which this package does not know. So this asks the way the construction judge asks ({@see ConstructionProbe}): the same child process boots the house at its root and prints its route table. A house that does not boot, or is not a `milpa/runtime` house, answers nothing — never a guess.

ServedRoutes::__construct()

public function __construct(?string $php = null):

Parameters

Parameters of __construct()
NameTypeDescription
$php?string

ServedRoutes::table()

public function table(string $root): array

The house's route table, or `[]` when it cannot be asked.

Parameters

Parameters of table()
NameTypeDescription
$rootstring

ServedRoutes::mountedScreens()

public function mountedScreens(string $root): array

The routes declared screens are mounted at, each with its screen.

Parameters

Parameters of mountedScreens()
NameTypeDescription
$rootstring

Returns

route → screen name