Compiles the current route instance.
\LogicException If the Route cannot be compiled because the path or host pattern is invalid
public static function compile(Route $route) : CompiledRoute;