Index.php 603 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Catalog\Controller\Index;
  7. use Magento\Framework\App\Action\HttpGetActionInterface;
  8. /**
  9. * Catalog index page controller.
  10. */
  11. class Index extends \Magento\Framework\App\Action\Action implements HttpGetActionInterface
  12. {
  13. /**
  14. * Index action
  15. *
  16. * @return \Magento\Framework\Controller\Result\Redirect
  17. */
  18. public function execute()
  19. {
  20. $resultRedirect = $this->resultRedirectFactory->create();
  21. return $resultRedirect->setPath('/');
  22. }
  23. }