4 * This file is part of the Symfony CMF package.
6 * (c) 2011-2015 Symfony CMF
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Cmf\Component\Routing\Event;
14 use Symfony\Component\EventDispatcher\Event;
15 use Symfony\Component\HttpFoundation\Request;
17 class RouterMatchEvent extends Event
25 * @param Request $request
27 public function __construct(Request $request = null)
29 $this->request = $request;
33 * @return Request | null
35 public function getRequest()
37 return $this->request;