protected function dispatchRoute($httpMethod, $uri)
    {
        if (isset($this->staticRouteMap[$uri])) {
            return $this->dispatchStaticRoute($httpMethod, $uri);
        }

        return $this->dispatchVariableRoute($httpMethod, $uri);
    }
protected function dispatchRoute($httpMethod, $uri)
    {
        if (isset($this->staticRouteMap[$uri])) {
            return $this->dispatchStaticRoute($httpMethod, $uri);
        }

        return $this->dispatchVariableRoute($httpMethod, $uri);
    }
protected function dispatchRoute ( $ httpMethod , $ uri ) { if ( isset ( $ this -> staticRouteMap [ $ uri ] ) ) { return $ this -> dispatchStaticRoute ( $ httpMethod , $ uri ) ; } return $ this -> dispatchVariableRoute ( $ httpMethod , $ uri ) ; }
Perform the route dispatching. Check static routes first followed by variable routes.

@param $httpMethod
@param $uri
@throws HttpRouteNotFoundException
Perform the route dispatching . Check static routes first followed by variable routes .