public function Route::compile

Compiles the route.

Return value

CompiledRoute A CompiledRoute instance

Throws

\LogicException If the Route cannot be compiled because the path or host pattern is invalid

See also

RouteCompiler which is responsible for the compilation process

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Route.php, line 556

Class

Route
A Route describes a route and its parameters.

Namespace

Symfony\Component\Routing

Code

public function compile() {
  if (null !== $this->compiled) {
    return $this->compiled;
  }
  $class = $this
    ->getOption('compiler_class');
  return $this->compiled = $class::compile($this);
}