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) C
class RouteNotFoundException extends InvalidArgumentException implements ExceptionInterface Exception thrown when a route does not exist.
interface RouteCompilerInterface RouteCompilerInterface is the interface that all RouteCompiler classes must implement. Methods static CompiledRoute compile(Route $route) Compiles the current route instance. Details 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
$this setRequirement(string $key, mixed $regex) Sets a requirement that will be added to all embedded routes (unless that requirement is already set). Parameters string $key mixed $regex Return Value $this
$this setOption(string $key, mixed $value) Sets an opiton that will be added to all embedded routes (unless that option is already set). Parameters string $key mixed $value Return Value $this
$this setMethods(array|string $methods) Sets the methods on all embedded routes (unless already set). Parameters array|string $methods Return Value $this
$this setHost(string $pattern) Sets the host on all embedded routes (unless already set). Parameters string $pattern Return Value $this
$this setSchemes(array|string $schemes) Sets the schemes on all embedded routes (unless already set). Parameters array|string $schemes Return Value $this
$this setCondition(string $condition) Sets a condition on all embedded routes (unless already set). Parameters string $condition Return Value $this
$this setDefault(string $key, mixed $value) Sets a default value that will be added to all embedded routes (unless that default value is already set). Parameters string $key mixed $value Return Value $this
Page 140 of 787