Index.php 829 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\Backend\Controller\Adminhtml\Index;
  8. use Magento\Framework\App\Action\HttpGetActionInterface as HttpGet;
  9. use Magento\Framework\App\Action\HttpPostActionInterface as HttpPost;
  10. class Index extends \Magento\Backend\Controller\Adminhtml\Index implements HttpGet, HttpPost
  11. {
  12. /**
  13. * Admin area entry point
  14. * Always redirects to the startup page url
  15. *
  16. * @return \Magento\Backend\Model\View\Result\Redirect
  17. */
  18. public function execute()
  19. {
  20. /** @var \Magento\Backend\Model\View\Result\Redirect $resultRedirect */
  21. $resultRedirect = $this->resultRedirectFactory->create();
  22. return $resultRedirect->setPath($this->_backendUrl->getStartupPageUrl());
  23. }
  24. }