Router.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. /**
  3. * Backend router
  4. *
  5. * Copyright © Magento, Inc. All rights reserved.
  6. * See COPYING.txt for license details.
  7. *
  8. */
  9. namespace Magento\Backend\App;
  10. /**
  11. * @api
  12. * @since 100.0.2
  13. */
  14. class Router extends \Magento\Framework\App\Router\Base
  15. {
  16. /**
  17. * @var \Magento\Framework\UrlInterface $url
  18. */
  19. protected $_url;
  20. /**
  21. * List of required request parameters
  22. * Order sensitive
  23. *
  24. * @var string[]
  25. */
  26. protected $_requiredParams = ['areaFrontName', 'moduleFrontName', 'actionPath', 'actionName'];
  27. /**
  28. * We need to have noroute action in this router
  29. * not to pass dispatching to next routers
  30. *
  31. * @var bool
  32. */
  33. protected $applyNoRoute = true;
  34. /**
  35. * @var string
  36. */
  37. protected $pathPrefix = \Magento\Backend\App\Area\FrontNameResolver::AREA_CODE;
  38. /**
  39. * Check whether redirect should be used for secure routes
  40. *
  41. * @return bool
  42. */
  43. protected function _shouldRedirectToSecure()
  44. {
  45. return false;
  46. }
  47. }