final class RouteCollection (View source)

Constants

private METHOD_ORDER

Methods

void
add(Route $route)
void
RouteMatch|null
match(string $method, string $path)
RouteMatch|null
array
allowedMethodsForPath(string $path)
array
bool
hasExplicitRouteForPath(HttpMethod|string $method, string $path)
bool
static array
sortMethods(array $methods)
array

Details

add

void add(Route $route)

No description

Parameters

Route $route

Return Value

void

match

RouteMatch|null match(string $method, string $path)

No description

Parameters

string $method
string $path

Return Value

RouteMatch|null

allowedMethodsForPath

array allowedMethodsForPath(string $path)

No description

Parameters

string $path

Return Value

array

hasExplicitRouteForPath

bool hasExplicitRouteForPath(HttpMethod|string $method, string $path)

No description

Parameters

HttpMethod|string $method
string $path

Return Value

bool

sortMethods

static array sortMethods(array $methods)

No description

Parameters

array $methods

Return Value

array