Further modules included.
[yaffs-website] / web / modules / contrib / drupalmoduleupgrader / src / Routing / RouterInterface.php
1 <?php
2
3 /**
4  * @file
5  * Contains \Drupal\drupalmoduleupgrader\Converter\Routing\RouterInterface.
6  */
7
8 namespace Drupal\drupalmoduleupgrader\Routing;
9
10 /**
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.
14  */
15 interface RouterInterface {
16
17   /**
18    * Adds a wrapped route definition to this router.
19    *
20    * @param RouteWrapperInterface $route
21    *  The wrapped route definition.
22    */
23   public function addRoute(RouteWrapperInterface $route);
24
25   /**
26    * Completes the 'build' of this router, dispatching the 'router.built'
27    * event to all added routes.
28    */
29   public function finalize();
30
31 }