Index.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\Config\Controller\Adminhtml\System\Config;
  8. use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
  9. class Index extends AbstractScopeConfig implements HttpGetActionInterface
  10. {
  11. /**
  12. * @var \Magento\Backend\Model\View\Result\ForwardFactory
  13. */
  14. protected $resultForwardFactory;
  15. /**
  16. * @param \Magento\Backend\App\Action\Context $context
  17. * @param \Magento\Config\Model\Config\Structure $configStructure
  18. * @param \Magento\Config\Controller\Adminhtml\System\ConfigSectionChecker $sectionChecker
  19. * @param \Magento\Config\Model\Config $backendConfig
  20. * @param \Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory
  21. */
  22. public function __construct(
  23. \Magento\Backend\App\Action\Context $context,
  24. \Magento\Config\Model\Config\Structure $configStructure,
  25. \Magento\Config\Controller\Adminhtml\System\ConfigSectionChecker $sectionChecker,
  26. \Magento\Config\Model\Config $backendConfig,
  27. \Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory
  28. ) {
  29. parent::__construct($context, $configStructure, $sectionChecker, $backendConfig);
  30. $this->resultForwardFactory = $resultForwardFactory;
  31. }
  32. /**
  33. * Index action
  34. *
  35. * @return \Magento\Backend\Model\View\Result\Forward
  36. */
  37. public function execute()
  38. {
  39. /** @var \Magento\Backend\Model\View\Result\Forward $resultForward */
  40. $resultForward = $this->resultForwardFactory->create();
  41. return $resultForward->forward('edit');
  42. }
  43. }