src/Panda/Routing/Route.php
protected function compileRoute()
    {
        $uri = preg_replace('/\{(\w+?)\?\}/', '{$1}', $this->uri);

        $this->compiled = (new SymfonyRoute($uri, $optionals = [], $requirements = [], [], $domain = ''))->compile();
    }
protected function compileRoute()
    {
        $uri = preg_replace('/\{(\w+?)\?\}/', '{$1}', $this->uri);

        $this->compiled = (new SymfonyRoute($uri, $optionals = [], $requirements = [], [], $domain = ''))->compile();
    }
protected function compileRoute ( ) { $ uri = preg_replace ( '/\{(\w+?)\?\}/' , '{$1}' , $ this -> uri ) ; $ this -> compiled = ( new SymfonyRoute ( $ uri , $ optionals = [ ] , $ requirements = [ ] , [ ] , $ domain = '' ) ) -> compile ( ) ; }
Compile the current route.

@throws LogicException
Compile the current route .