1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- /**
- *
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Config\Controller\Adminhtml\System\Config;
- use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
- class Index extends AbstractScopeConfig implements HttpGetActionInterface
- {
- /**
- * @var \Magento\Backend\Model\View\Result\ForwardFactory
- */
- protected $resultForwardFactory;
- /**
- * @param \Magento\Backend\App\Action\Context $context
- * @param \Magento\Config\Model\Config\Structure $configStructure
- * @param \Magento\Config\Controller\Adminhtml\System\ConfigSectionChecker $sectionChecker
- * @param \Magento\Config\Model\Config $backendConfig
- * @param \Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory
- */
- public function __construct(
- \Magento\Backend\App\Action\Context $context,
- \Magento\Config\Model\Config\Structure $configStructure,
- \Magento\Config\Controller\Adminhtml\System\ConfigSectionChecker $sectionChecker,
- \Magento\Config\Model\Config $backendConfig,
- \Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory
- ) {
- parent::__construct($context, $configStructure, $sectionChecker, $backendConfig);
- $this->resultForwardFactory = $resultForwardFactory;
- }
- /**
- * Index action
- *
- * @return \Magento\Backend\Model\View\Result\Forward
- */
- public function execute()
- {
- /** @var \Magento\Backend\Model\View\Result\Forward $resultForward */
- $resultForward = $this->resultForwardFactory->create();
- return $resultForward->forward('edit');
- }
- }
|