class RouteCompiler implementsRouteCompilerInterface

RouteCompiler compiles Route instances to CompiledRoute instances.

Constants

SEPARATORS

This string defines the characters that are automatically considered separators in front of optional placeholders (with default and no static text following). Such a single separator can be left out together with the optional placeholder from matching and generating URLs.

VARIABLE_MAXIMUM_LENGTH

The maximum supported length of a PCRE subpattern name http://pcre.org/current/doc/html/pcre2pattern.html#SEC16.

Methods

static CompiledRoute
compile(Route$route)

No description

Details

staticCompiledRoute compile(Route$route)

Parameters

Route $route

Return Value

CompiledRoute

Exceptions

InvalidArgumentException if a path variable is named _fragment
LogicException if a variable is referenced more than once
DomainException if a variable name starts with a digit or if it is too long to be successfully used as a PCRE subpattern