PathConfigInterface.php 953 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /***
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\App\Router;
  7. /**
  8. * Interface \Magento\Framework\App\Router\PathConfigInterface
  9. *
  10. */
  11. interface PathConfigInterface
  12. {
  13. /**
  14. * Retrieve secure url for current request
  15. *
  16. * @param \Magento\Framework\App\RequestInterface $request
  17. * @return string
  18. */
  19. public function getCurrentSecureUrl(\Magento\Framework\App\RequestInterface $request);
  20. /**
  21. * Check whether given path should be secure according to configuration security requirements for URL
  22. * "Secure" should not be confused with https protocol, it is about web/secure/*_url settings usage only
  23. *
  24. * @param string $path
  25. * @return bool
  26. */
  27. public function shouldBeSecure($path);
  28. /**
  29. * Get router default request path
  30. *
  31. * @return string
  32. */
  33. public function getDefaultPath();
  34. }