Phlyty\App::registerRouteMethods PHP Method

registerRouteMethods() protected method

Determine what methods a route responds to
protected registerRouteMethods ( Route $route, integer $index )
$route Route
$index integer
    protected function registerRouteMethods(Route $route, $index)
    {
        foreach ($route->respondsTo() as $method) {
            if (!isset($this->routesByMethod[$method])) {
                $this->routesByMethod[$method] = [];
            }
            $this->routesByMethod[$method][$index] = $route;
        }
    }