src/Routing/Dispatcher.php
public function dispatch($httpMethod, $uri)
    {
        $routes = array();

        foreach ($this->routes as $route) {
            $parsed = $this->parse($httpMethod, $uri, $route);

            $routes[] = $parsed;
        }

        $route = $this->retrieve($routes, $uri);

        return array(array($route[0], $route[1]), $route[2]);
    }
public function dispatch($httpMethod, $uri)
    {
        $routes = array();

        foreach ($this->routes as $route) {
            $parsed = $this->parse($httpMethod, $uri, $route);

            $routes[] = $parsed;
        }

        $route = $this->retrieve($routes, $uri);

        return array(array($route[0], $route[1]), $route[2]);
    }
Dispatches against the provided HTTP method verb and URI.

@param  string $httpMethod
@param  string $uri
@return array|mixed