Compiles the route.
CompiledRoute A CompiledRoute instance
\LogicException If the Route cannot be compiled because the path or host pattern is invalid
RouteCompiler which is responsible for the compilation process
public function compile() {
if (null !== $this->compiled) {
return $this->compiled;
}
$class = $this
->getOption('compiler_class');
return $this->compiled = $class::compile($this);
}