Skip to content
docsv0.34.0

RoutesSource

Every route the booted plugins declared, read from the same source the kernel mounts them from. `milpa/runtime` keeps the assembled table private (`Router::$routes`), but every route in it came from a plugin's `RouteProviderInterface::routes()` — so the panel asks the plugins, exactly as the boot strategy did. A plugin's per-route middleware (`Route::$middleware`) and its handler are part of the declaration, which is why they are columns and not a second inspector.

RoutesSource::__construct()

public function __construct(Milpa\Interfaces\Di\DIContainerInterface $container, ?object $fallbackProvider = null):

Parameters

Parameters of __construct()
NameTypeDescription
$containerMilpa\Interfaces\Di\DIContainerInterface
$fallbackProvider(object | null)a plugin to read when no kernel is in the container (the panel itself)

RoutesSource::snapshot()

public function snapshot(): array

The routes table, sorted by path then method.