public function match(Request $request, $route = false)
    {
        if (count($this->_childs)) {
            $route = $this->_match($request, $route);
        }

        if (!$route) {
            $route = $this->_default($request)->merge($route);
        }


        if (!$route) {
            throw new RuntimeException("Missing route...");
        }

        return $route;
    }
public function match(Request $request, $route = false)
    {
        if (count($this->_childs)) {
            $route = $this->_match($request, $route);
        }

        if (!$route) {
            $route = $this->_default($request)->merge($route);
        }


        if (!$route) {
            throw new RuntimeException("Missing route...");
        }

        return $route;
    }
public function match ( Request $ request , $ route = false ) { if ( count ( $ this -> _childs ) ) { $ route = $ this -> _match ( $ request , $ route ) ; } if ( ! $ route ) { $ route = $ this -> _default ( $ request ) -> merge ( $ route ) ; } if ( ! $ route ) { throw new RuntimeException ( "Missing route..." ) ; } return $ route ; }
Match a request on a route

@param Request the actual request
@return Route
Match a request on a route