src/Vectorface/SnappyRouter/Handler/PatternMatchHandler.php
protected function getRouteInfo($verb, $path, $useCache = false)
    {
        if (!$useCache || !isset($this->routeInfo)) {
            $dispatcher = $this->getDispatcher($this->getRoutes());
            $this->routeInfo = $dispatcher->dispatch(strtoupper($verb), $path);
        }
        return $this->routeInfo;
    }
protected function getRouteInfo($verb, $path, $useCache = false)
    {
        if (!$useCache || !isset($this->routeInfo)) {
            $dispatcher = $this->getDispatcher($this->getRoutes());
            $this->routeInfo = $dispatcher->dispatch(strtoupper($verb), $path);
        }
        return $this->routeInfo;
    }
protected function getRouteInfo ( $ verb , $ path , $ useCache = false ) { if ( ! $ useCache || ! isset ( $ this -> routeInfo ) ) { $ dispatcher = $ this -> getDispatcher ( $ this -> getRoutes ( ) ) ; $ this -> routeInfo = $ dispatcher -> dispatch ( strtoupper ( $ verb ) , $ path ) ; } return $ this -> routeInfo ; }
Returns the array of route info from the routing library.
@param string $verb The HTTP verb used in the request.
@param string $path The path to match against the patterns.
@param boolean $useCache (optional) An optional flag whether to use the
cached route info or not. Defaults to false.
@return array Returns the route info as an array.
Returns the array of route info from the routing library .