Skip to content

RoutePlan

The routing IR: an ordered set of RouteDefinitions gathered from one or more sources (today: an AttributeRouteScanner pass).

Both back-ends (RouteCollectionBuilder for the runtime, a future compiled-matcher emitter for routes:compile) consume this and this alone.

final class RoutePlan

Since1.0.0
SourceRouting/Compiler/RoutePlan.php
PropertyTypeDescription
$routesarrayreadonly.
$sourceRefstringreadonly.

public function __construct(array<RouteDefinition> $routes, string $sourceRef): mixed

ParameterTypeDescription
$routesarray``<RouteDefinition>
$sourceRefstring

Returns mixed