Further modules included.
[yaffs-website] / web / modules / contrib / drupalmoduleupgrader / src / Routing / RouterBuiltEvent.php
1 <?php
2
3 /**
4  * @file
5  * Contains \Drupal\drupalmoduleupgrader\Converter\Routing\RouterBuiltEvent.
6  */
7
8 namespace Drupal\drupalmoduleupgrader\Routing;
9
10 use Symfony\Component\EventDispatcher\Event;
11
12 /**
13  * Event object fired when all routes have been added to a RouterInterface
14  * implementation.
15  */
16 class RouterBuiltEvent extends Event {
17
18   /**
19    * @var \Drupal\drupalmoduleupgrader\Converter\Routing\RouterInterface
20    */
21   protected $router;
22
23   /**
24    * Constructs a RouterBuiltEvent object.
25    */
26   public function __construct(RouterInterface $router) {
27     $this->router = $router;
28   }
29
30   /**
31    * Returns the router object.
32    *
33    * @return \Drupal\drupalmoduleupgrader\Converter\Routing\RouterInterface
34    */
35   public function getRouter() {
36     return $this->router;
37   }
38
39 }