Compiles the route.
CompiledRoute A CompiledRoute instance
public function compile() {
if (null !== $this->compiled) {
return $this->compiled;
}
$class = $this
->getOption('compiler_class');
if (!isset(self::$compilers[$class])) {
self::$compilers[$class] = new $class();
}
return $this->compiled = self::$compilers[$class]
->compile($this);
}