class RouteCompiler implements RouteCompilerInterface

RouteCompiler compiles Route instances to CompiledRoute instances.

Constants

REGEX_DELIMITER

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.

Methods

static CompiledRoute
compile(Route $route)

Compiles the current route instance.

Details

at line line 38
static CompiledRoute compile(Route $route)

Compiles the current route instance.

Parameters

Route $route A Route instance

Return Value

CompiledRoute A CompiledRoute instance

Exceptions

LogicException If the Route cannot be compiled because the path or host pattern is invalid