Version 1
[yaffs-website] / web / core / lib / Drupal / Core / Routing / MatcherDumperInterface.php
diff --git a/web/core/lib/Drupal/Core/Routing/MatcherDumperInterface.php b/web/core/lib/Drupal/Core/Routing/MatcherDumperInterface.php
new file mode 100644 (file)
index 0000000..46c6cec
--- /dev/null
@@ -0,0 +1,21 @@
+<?php
+
+namespace Drupal\Core\Routing;
+
+use Symfony\Component\Routing\Matcher\Dumper\MatcherDumperInterface as SymfonyMatcherDumperInterface;
+use Symfony\Component\Routing\RouteCollection;
+
+/**
+ * Extends the symfony matcher dumper interface with a addRoutes method.
+ */
+interface MatcherDumperInterface extends SymfonyMatcherDumperInterface {
+
+  /**
+   * Adds additional routes to be dumped.
+   *
+   * @param \Symfony\Component\Routing\RouteCollection $routes
+   *   A collection of routes to add to this dumper.
+   */
+  public function addRoutes(RouteCollection $routes);
+
+}