Drupal investigation

RouterMatchEvent.php 742B

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