RequestSafetyInterface.php 452 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\App;
  7. /**
  8. * Request safety check. Can be used to identify if current application request is safe (does not modify state) or not.
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface RequestSafetyInterface
  14. {
  15. /**
  16. * Check that this is safe request
  17. *
  18. * @return bool
  19. */
  20. public function isSafeMethod();
  21. }