2f208336a8551394ca729f62e9d642654b1836c0
[yaffs-website] / vendor / symfony-cmf / routing / Event / RouterMatchEvent.php
1 <?php
2
3 /*
4  * This file is part of the Symfony CMF package.
5  *
6  * (c) 2011-2015 Symfony CMF
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Symfony\Cmf\Component\Routing\Event;
13
14 use Symfony\Component\EventDispatcher\Event;
15 use Symfony\Component\HttpFoundation\Request;
16
17 class RouterMatchEvent extends Event
18 {
19     /**
20      * @var Request
21      */
22     protected $request;
23
24     /**
25      * @param Request $request
26      */
27     public function __construct(Request $request = null)
28     {
29         $this->request = $request;
30     }
31
32     /**
33      * @return Request | null
34      */
35     public function getRequest()
36     {
37         return $this->request;
38     }
39 }