public function dispatch($httpMethod, $uri)
    {
        // If routes resolver callback is set, call it to get the routes data
        if ($this->routesResolver) {
            list($this->staticRouteMap, $this->variableRouteData) = call_user_func($this->routesResolver);
        }

        // Pass the call to the parent fast-route dispatcher
        return parent::dispatch($httpMethod, $uri);
    }
public function dispatch($httpMethod, $uri)
    {
        // If routes resolver callback is set, call it to get the routes data
        if ($this->routesResolver) {
            list($this->staticRouteMap, $this->variableRouteData) = call_user_func($this->routesResolver);
        }

        // Pass the call to the parent fast-route dispatcher
        return parent::dispatch($httpMethod, $uri);
    }
public function dispatch ( $ httpMethod , $ uri ) { // If routes resolver callback is set, call it to get the routes data if ( $ this -> routesResolver ) { list ( $ this -> staticRouteMap , $ this -> variableRouteData ) = call_user_func ( $ this -> routesResolver ) ; } // Pass the call to the parent fast-route dispatcher return parent :: dispatch ( $ httpMethod , $ uri ) ; }
Dispatch the request after getting the routes data if not set at the instantiation.

@param  string $httpMethod
@param  atring $uri

@return integer
Dispatch the request after getting the routes data if not set at the instantiation .