Symfony\Component\Routing\RouteCompiler
RouteCompiler compiles Route instances to CompiledRoute instances.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class RouteCompiler
implements
RouteCompilerInterface
{
- // constants
- const REGEX_DELIMITER = '#';
- const SEPARATORS = '/,;.:-_~+*=@|';
- // methods
- public static void compile()
- private static void compilePattern()
- private static string findNextSeparator()
- private static string computeRegexp()
Hierarchy
Constants
Name | Value |
---|---|
REGEX_DELIMITER | '#' |
SEPARATORS | '/,;.:-_~+*=@|' |
Methods
private
- compilePattern()
- computeRegexp() — Computes the regexp used to match a specific token. It can be static text or a subpattern.
- findNextSeparator() — Returns the next static character in the Route pattern that will serve as a separator.
public
- compile() — {@inheritDoc}