You are here

public function MongodbRouterDumper::addRoutes in MongoDB 8

Adds additional routes to be dumped.

Parameters

\Symfony\Component\Routing\RouteCollection $routes: A collection of routes to add to this dumper.

Overrides MatcherDumperInterface::addRoutes

File

src/MongodbRouterDumper.php, line 48
Definition of Drupal\mongodb\MongoKeyValueFactory.

Class

MongodbRouterDumper

Namespace

Drupal\mongodb

Code

public function addRoutes(RouteCollection $routes) {
  if (empty($this->routes)) {
    $this->routes = $routes;
  }
  else {
    $this->routes
      ->addCollection($routes);
  }
}