/** * Add a route * * @param string $name * @param string $path * * @return Route */ public function route($name, $path) { $route = $this->routeFactory->build($name, $path); return $this->routes[$name] = $route; }