ActionInterface.php 919 B

1234567891011121314151617181920212223242526272829303132333435
  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. * Magento application action controller type. Every action controller in Application should implement this interface.
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface ActionInterface
  14. {
  15. const FLAG_NO_DISPATCH = 'no-dispatch';
  16. const FLAG_NO_POST_DISPATCH = 'no-postDispatch';
  17. const FLAG_NO_DISPATCH_BLOCK_EVENT = 'no-beforeGenerateLayoutBlocksDispatch';
  18. const PARAM_NAME_BASE64_URL = 'r64';
  19. const PARAM_NAME_URL_ENCODED = 'uenc';
  20. /**
  21. * Execute action based on request and return result
  22. *
  23. * Note: Request will be added as operation argument in future
  24. *
  25. * @return \Magento\Framework\Controller\ResultInterface|ResponseInterface
  26. * @throws \Magento\Framework\Exception\NotFoundException
  27. */
  28. public function execute();
  29. }