3 namespace Drupal\Core\Routing;
5 use Symfony\Component\Routing\RouteCollection;
8 * Does not dump Route information.
10 class NullMatcherDumper implements MatcherDumperInterface {
13 * The routes to be dumped.
15 * @var \Symfony\Component\Routing\RouteCollection
22 public function addRoutes(RouteCollection $routes) {
23 if (empty($this->routes)) {
24 $this->routes = $routes;
27 $this->routes->addCollection($routes);
32 * Dumps a set of routes to the router table in the database.
35 * - provider: The route grouping that is being dumped. All existing
36 * routes with this provider will be deleted on dump.
37 * - base_class: The base class name.
39 * @param array $options
40 * An array of options.
42 public function dump(array $options = []) {
43 // The dumper is reused for multiple providers, so reset the queued routes.
48 * Gets the routes to match.
50 * @return \Symfony\Component\Routing\RouteCollection
51 * A RouteCollection instance representing all routes currently in the
54 public function getRoutes() {