public function Route::compile

Compiles the route.

Return value

CompiledRoute A CompiledRoute instance

File

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

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');
  if (!isset(self::$compilers[$class])) {
    self::$compilers[$class] = new $class();
  }
  return $this->compiled = self::$compilers[$class]
    ->compile($this);
}