code: public function addRoutes(RouteCollector $routeCollector): void
      {
          foreach ($this->routes as $index => $route) {
              $routeCollector->addRoute($route->getMethods(), $route->getPath(), $index);
          }
      }
docs: Callable for simpleDispatcher to add routes
  
  @param RouteCollector $routeCollector
  
  @return void