Skip to content
Corex

RouteDescriptor

Corex\Cli\Routes\RouteDescriptor · class · CLI layer

One registered REST route as pure data (spec 046, US2): its namespace, path, the methods it accepts, and whether it is guarded (a non-public permission callback). Enumerated by the routes reader at the runtime boundary; powers routes:list and api:docs.

__construct(string $namespace, string $path, string $methods, bool $guarded)

Section titled “__construct(string $namespace, string $path, string $methods, bool $guarded)”