public function Route::compile in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/routing/Route.php \Symfony\Component\Routing\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
- vendor/
symfony/ routing/ Route.php, line 617
Class
- Route
- A Route describes a route and its parameters.
Namespace
Symfony\Component\RoutingCode
public function compile() {
if (null !== $this->compiled) {
return $this->compiled;
}
$class = $this
->getOption('compiler_class');
return $this->compiled = $class::compile($this);
}