private function buildValidRoute(Route $route): void
    {
        //add to route array the passed uri for param check when call
        $matches = $this->routeMatches;

        //route match and there is a subpattern with action
        if (\count($matches) > 1) {
            //assume that subpattern rapresent action
            $route->action = $matches[1];

            //url clean
            $route->url = \preg_replace('`\([0-9A-Za-z\|]++\)`', $matches[1], $route->url);
        }

        $route->param = $this->buildParam($route);

        $this->route = $route;
    }
private function buildValidRoute(Route $route): void
    {
        //add to route array the passed uri for param check when call
        $matches = $this->routeMatches;

        //route match and there is a subpattern with action
        if (\count($matches) > 1) {
            //assume that subpattern rapresent action
            $route->action = $matches[1];

            //url clean
            $route->url = \preg_replace('`\([0-9A-Za-z\|]++\)`', $matches[1], $route->url);
        }

        $route->param = $this->buildParam($route);

        $this->route = $route;
    }
private function buildValidRoute ( Route $ route ) : void { //add to route array the passed uri for param check when call $ matches = $ this -> routeMatches ; //route match and there is a subpattern with action if ( \ count ( $ matches ) > 1 ) { //assume that subpattern rapresent action $ route -> action = $ matches [ 1 ] ; //url clean $ route -> url = \ preg_replace ( '`\([0-9A-Za-z\|]++\)`' , $ matches [ 1 ] , $ route -> url ) ; } $ route -> param = $ this -> buildParam ( $ route ) ; $ this -> route = $ route ; }
Build a valid route.

@param Route $route

@return void
Build a valid route .