5 * Contains \Drupal\drupalmoduleupgrader\Converter\Routing\RouterInterface.
8 namespace Drupal\drupalmoduleupgrader\Routing;
11 * Defines a collection of routes, each wrapped by an implementation of
12 * RouteWrapperInterface in order to normalize the gaping differences
13 * between Drupal 7 and Drupal 8 routes.
15 interface RouterInterface {
18 * Adds a wrapped route definition to this router.
20 * @param RouteWrapperInterface $route
21 * The wrapped route definition.
23 public function addRoute(RouteWrapperInterface $route);
26 * Completes the 'build' of this router, dispatching the 'router.built'
27 * event to all added routes.
29 public function finalize();