private function add($path, $callable, $name, $method) {
		$route = new Route($path, $callable);

		$this->routes[$method][] = $route;

		if (is_string($callable) && $name === null) {
			$name = $callable;
		}

		// If the route has a name, add to named routes collection
		if ($name) {
			$this->namedRoutes[$name] = $route;
		}

		return $route;
	}