public function compile()
    {
        if (null !== $this->compiled) {
            return $this->compiled;
        }

        $class = $this->getOption('compiler_class');

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

        $class = $this->getOption('compiler_class');

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

@return CompiledRoute A CompiledRoute instance

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

@see RouteCompiler which is responsible for the compilation process
Compiles the route .