Compiles the route.
\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() : CompiledRoute { if (null !== $this->compiled) { return $this->compiled; } $class = $this->getOption('compiler_class'); return $this->compiled = $class::compile($this); }